summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-11 21:29:44 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-11 21:29:44 +0000
commit873983a1f2ba7303096c00439011669b9caf2985 (patch)
tree71449eb2dc70b78cbc480d30e7489a694d4d3ba2 /gcc
parentde6ed5846892c841e115de7caad20010f1af0f8d (diff)
downloadgcc-873983a1f2ba7303096c00439011669b9caf2985.tar.gz
PR rtl-optimization/30113
* loop-iv.c (implies_p): Require the mode of the operands to be scalar. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119748 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/loop-iv.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f01ef107787..2a0d0bb8bf7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-11 Zdenek Dvorak <dvorakz@suse.cz>
+
+ PR rtl-optimization/30113
+ * loop-iv.c (implies_p): Require the mode of the operands to be
+ scalar.
+
2006-12-11 Diego Novillo <dnovillo@redhat.com>
* tree-ssa-operands.h (create_ssa_artificial_load_stmt):
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c
index e234fd93b79..fcf4a2525af 100644
--- a/gcc/loop-iv.c
+++ b/gcc/loop-iv.c
@@ -1490,7 +1490,7 @@ implies_p (rtx a, rtx b)
mode = VOIDmode;
}
- if (mode != VOIDmode
+ if (SCALAR_INT_MODE_P (mode)
&& rtx_equal_p (op1, opb1)
&& simplify_gen_binary (MINUS, mode, opb0, op0) == const1_rtx)
return true;