diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-02-01 09:47:27 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-02-01 09:47:27 +0100 |
commit | 654745e6f967ebf1c8819f9d51a74a042c153639 (patch) | |
tree | 7bcc0c81e3c7db63d667990548f937db05f85f56 /gcc/ifcvt.c | |
parent | e6c0c44b5b43c4fef77f3a566d035db5c589ff99 (diff) | |
download | gcc-654745e6f967ebf1c8819f9d51a74a042c153639.zip gcc-654745e6f967ebf1c8819f9d51a74a042c153639.tar.gz gcc-654745e6f967ebf1c8819f9d51a74a042c153639.tar.bz2 |
re PR rtl-optimization/69570 (if-conversion bug on i?86)
PR rtl-optimization/69570
* ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
if there is more than one set, not if there is a single set.
* g++.dg/opt/pr69570.C: New test.
From-SVN: r233033
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 74958fb..53cb41f 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -3295,7 +3295,7 @@ bb_ok_for_noce_convert_multiple_sets (basic_block test_bb, if (count > limit) return false; - return count > 0; + return count > 1; } /* Given a simple IF-THEN-JOIN or IF-THEN-ELSE-JOIN block, attempt to convert |