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

PR rtl-optimization/30113
	* loop-iv.c (implies_p): Require the mode of the operands to be
	scalar.

From-SVN: r119748
This commit is contained in:
Zdenek Dvorak 2006-12-11 22:29:44 +01:00 committed by Zdenek Dvorak
parent cfaab3a924
commit d453882913
2 changed files with 7 additions and 1 deletions

View file

@ -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):

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;