* egcs, Peephole Problem
@ 1997-12-10 23:53 Andreas Unger
0 siblings, 0 replies; only message in thread
From: Andreas Unger @ 1997-12-10 23:53 UTC (permalink / raw)
To: egcs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-12-10 23:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-10 23:53 egcs, Peephole Problem Andreas Unger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).