]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR rtl-optimization/54919 (gcc.dg/torture/pr54877.c FAILs with -fvariable-expansio...
authorSteven Bosscher <steven@gcc.gnu.org>
Sun, 14 Oct 2012 19:29:18 +0000 (19:29 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Sun, 14 Oct 2012 19:29:18 +0000 (19:29 +0000)
commit6e74642b2c37305436269a8c036f1519b4c8c111
tree15fe92fb736ec7716ce5d0604100a38f2b553ee9
parentb5afa20284b164fdfaf04801361748076a50a928
re PR rtl-optimization/54919 (gcc.dg/torture/pr54877.c FAILs with -fvariable-expansion-in-unroller)

gcc/
PR rtl-optimization/54919
* loop-unroll.c (struct var_to_expand): Remove accum_pos field.
(analyze_insn_to_expand_var): Do not record accum_pos.
(expand_var_during_unrolling): Use validate_replace_rtx_group to
perform replacement of all references to SET_DEST (set) with the
new register, including references in REG_EQUAL notes.
(insert_var_expansion_initialization): Insert initializatio insns
at the bottom of the pre-header of the loop.

testsuite/
PR rtl-optimization/54919
* gcc.dg/pr54919.c: New testcase.

From-SVN: r192439
gcc/ChangeLog
gcc/loop-unroll.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr54919.c [new file with mode: 0644]