]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR rtl-optimization/52060 (Invalid constant simplification in combine...
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Feb 2012 17:29:38 +0000 (18:29 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Feb 2012 17:29:38 +0000 (18:29 +0100)
commit3daebe1857a7720546f98f123b4e54424f168459
treee5ec5954db76283809a4ddc42952b8c0f16a4b56
parent1d999eebe24ca6ec4ea588dcdb6a06dc81567307
backport: re PR rtl-optimization/52060 (Invalid constant simplification in combine with parallel result)

Backported from mainline
2012-02-07  Jakub Jelinek  <jakub@redhat.com>

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: r184061
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr52060.c [new file with mode: 0644]