This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs, Peephole Problem
- To: egcs at cygnus dot com
- Subject: egcs, Peephole Problem
- From: Andreas Unger <andreas dot unger at rz dot uni-jena dot de>
- Date: Thu, 11 Dec 1997 08:55:38 +0100
- Organization: FSU Jena
- Reply-To: egcs at cygnus dot com
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