OSDN Git Service

PR rtl-optimization/46034
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2010 08:30:21 +0000 (08:30 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2010 08:30:21 +0000 (08:30 +0000)
commit446c6cb5425185b03464f8e077381a786fb3a4ff
tree9662fee926c1689b6a8d33a0e625c0547515c5dc
parent075f1161cb9f82bd079949405df6c8e54bce6d94
PR rtl-optimization/46034
PR rtl-optimization/46212
PR rtl-optimization/46248
* combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
before i0dest -> i0src substitution and pass 1 instead of 0 as last
argument to subst on i2pat.

* gcc.c-torture/compile/pr46034.c: New test.
* gcc.c-torture/compile/pr46248.c: New test.
* gcc.dg/pr46212.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166231 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr46034.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr46248.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr46212.c [new file with mode: 0644]