From: Zdenek Dvorak Date: Mon, 11 Dec 2006 21:29:44 +0000 (+0100) Subject: re PR rtl-optimization/30113 (ICE in trunc_int_for_mode) X-Git-Tag: releases/gcc-4.3.0~8021 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d45388291382c29d4c7c7ce8a9b130499ffedd9c;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f01ef1077879..2a0d0bb8bf7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-12-11 Zdenek Dvorak + + PR rtl-optimization/30113 + * loop-iv.c (implies_p): Require the mode of the operands to be + scalar. + 2006-12-11 Diego Novillo * tree-ssa-operands.h (create_ssa_artificial_load_stmt): diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index e234fd93b799..fcf4a2525af5 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;