From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Unger To: egcs@cygnus.com Subject: egcs, Peephole Problem Date: Wed, 10 Dec 1997 23:53:00 -0000 Message-id: <348F9C7A.C1C14461@uni-jena.de> X-SW-Source: 1997-12/msg00637.html Translating int a, b, c, d; int main(){ int i; for(i=0; i < 10000000; i++){ a = a+b+c; if(a == 3000) b++; if(a % 2) d=a*c; else d=a*a*c; b=b+c+a; c=b+d; } } with haifa enabled on sparc-sun-solaris2.5.1 has produced: .... .LL10: st %g2,[%o7+%lo(d)] ld [%o7+%lo(d)],%g2 .... Andreas -- andreas.unger@uni-jena.de