aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Christopher <echristo@redhat.com>2005-06-06 18:13:31 +0000
committerEric Christopher <echristo@gcc.gnu.org>2005-06-06 18:13:31 +0000
commit08fd6d04199ac8d1f1571d1f807853b8ff7f2fc0 (patch)
treeb91fab24723a61559698e77950c8ea9800d7c8ca
parent5e97d404553157c7d74c399907b60125111f130f (diff)
downloadgcc-08fd6d04199ac8d1f1571d1f807853b8ff7f2fc0.zip
gcc-08fd6d04199ac8d1f1571d1f807853b8ff7f2fc0.tar.gz
gcc-08fd6d04199ac8d1f1571d1f807853b8ff7f2fc0.tar.bz2
expr.c (do_store_flag): Remove check for non-negative BRANCH_COST.
2005-06-06 Eric Christopher <echristo@redhat.com> target/21927 * expr.c (do_store_flag): Remove check for non-negative BRANCH_COST. From-SVN: r100670
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/expr.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d52b391..5eaa8ed 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-06 Eric Christopher <echristo@redhat.com>
+
+ target/21927
+ * expr.c (do_store_flag): Remove check for non-negative BRANCH_COST.
+
2005-06-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard with
diff --git a/gcc/expr.c b/gcc/expr.c
index e67d65d..a3ee9e7 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -8729,8 +8729,7 @@ do_store_flag (tree exp, rtx target, enum machine_mode mode, int only_cheap)
if ((code == LT && integer_zerop (arg1))
|| (! only_cheap && code == GE && integer_zerop (arg1)))
;
- else if (BRANCH_COST >= 0
- && ! only_cheap && (code == NE || code == EQ)
+ else if (! only_cheap && (code == NE || code == EQ)
&& TREE_CODE (type) != REAL_TYPE
&& ((abs_optab->handlers[(int) operand_mode].insn_code
!= CODE_FOR_nothing)