This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26290] [4.1 Regression]: some loop optimizations no longer run at -O2
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Feb 2006 14:39:26 -0000
- Subject: [Bug target/26290] [4.1 Regression]: some loop optimizations no longer run at -O2
- References: <bug-26290-5637@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from steven at gcc dot gnu dot org 2006-02-18 14:39 -------
Loop body with GCC 4.1:
<L0>:;
j = i + 1;
if (cnt > j) goto <L12>; else goto <L8>;
<L12>:;
ivtmp.49 = (int *) ivtmp.54;
j.56 = j;
<L1>:;
D.2857 = (int *) j;
D.2751 = MEM[base: lst, index: D.2857, step: 4B, offset: 4294967292B];
D.2851 = (int *) ivtmp.49;
D.2756 = MEM[base: D.2851, offset: 4B];
if (D.2751 > D.2756) goto <L2>; else goto <L3>;
<L2>:;
MEM[base: lst, index: D.2857, step: 4B, offset: 4294967292B] = D.2756;
MEM[base: D.2851, offset: 4B] = D.2751;
<L3>:;
j.56 = j.56 + 1;
ivtmp.49 = ivtmp.49 + 4B;
if (cnt > j.56) goto <L1>; else goto <L8>;
<L8>:;
ivtmp.54 = ivtmp.54 + 4B;
i = j;
<L6>:;
if (i < pretmp.39) goto <L0>; else goto <L7>;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26290