re PR middle-end/35136 (ICE caused by address calculation with loop variable when...
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 14 Feb 2008 19:07:38 +0000 (19:07 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 14 Feb 2008 19:07:38 +0000 (19:07 +0000)
commit928bc34f5f3653e17357351b394894827aeef424
tree179f616f6f526bdb6070315bbfbf22e717f577d5
parent4bcf935d1195ea17f17d5249ef2a502ead734535
re PR middle-end/35136 (ICE caused by address calculation with loop variable when optimization is on)

PR middle-end/35136
* gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
(force_gimple_operand): Likewise.
* tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
(find_interesting_uses_address): Check addressability and alignment
of the base expression only after substituting bases of IVs into it.

From-SVN: r132320
gcc/ChangeLog
gcc/gimplify.c
gcc/tree-ssa-loop-ivopts.c