re PR rtl-optimization/52060 (Invalid constant simplification in combine with paralle...
commit13a72c0ba3e023f0f585654ed389c76efd4c1590
authorJakub Jelinek <jakub@redhat.com>
Tue, 7 Feb 2012 15:48:52 +0000 (7 16:48 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 7 Feb 2012 15:48:52 +0000 (7 16:48 +0100)
treeca6b0042141862f3c4f03a32d3199c206b2102e5
parent117cb2bc9854cfacb54527e574a2861a09cff731
re PR rtl-optimization/52060 (Invalid constant simplification in combine with parallel result)

PR rtl-optimization/52060
* combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
and/or i0src_copy2 when needed.

* gcc.dg/torture/pr52060.c: New test.

From-SVN: r183972
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr52060.c [new file with mode: 0644]