This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/26290] [4.1 Regression]: some loop optimizations no longer run at -O2



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]