backport: re PR rtl-optimization/30113 (ICE in trunc_int_for_mode)

2007-07-03  Richard Guenther  <rguenther@suse.de>

        Backport from mainline:
        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.

From-SVN: r126259
This commit is contained in:
Richard Guenther
2007-07-03 14:33:16 +00:00
committed by Richard Biener
parent 505bd2aa8e
commit 5b37cd331e
2 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,12 @@
2007-07-03 Richard Guenther <rguenther@suse.de>
Backport from mainline:
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.
2007-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
PR target/28307

View File

@@ -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;