This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/52060] [4.6 Regression] Invalid constant simplification in combine with parallel result
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 09 Feb 2012 17:29:52 +0000
- Subject: [Bug rtl-optimization/52060] [4.6 Regression] Invalid constant simplification in combine with parallel result
- Auto-submitted: auto-generated
- References: <bug-52060-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52060
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-09 17:29:52 UTC ---
Author: jakub
Date: Thu Feb 9 17:29:38 2012
New Revision: 184061
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184061
Log:
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.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.dg/torture/pr52060.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/combine.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog