summaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-09 18:04:31 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-08-09 18:04:31 +0000
commit74f90a673c614db4bf1a518861e9e69ee54b7d99 (patch)
treec0afc9a253ea7116ac1d88b2d85662a469e7e977 /gcc/ifcvt.c
parentf791516784ac140c7c5f2e1e216b9c1d3192dbad (diff)
downloadgcc-74f90a673c614db4bf1a518861e9e69ee54b7d99.tar.gz
* ifcvt.c (find_if_case_2): Test correct basic block for size.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56167 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index ecf0f77c39c..db7140a6998 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -2769,7 +2769,7 @@ find_if_case_2 (test_bb, then_edge, else_edge)
test_bb->index, else_bb->index);
/* ELSE is small. */
- if (count_bb_insns (then_bb) > BRANCH_COST)
+ if (count_bb_insns (else_bb) > BRANCH_COST)
return FALSE;
/* Registers set are dead, or are predicable. */