





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






(^) Considers only a restricted subset of the IR tree
(^) Considers the entire program
(^) Considers each module in its entirety
a = 5; b = a; c = b;
a = 5; b = 5; c = 5;
Unreachable Code Elimination
a, TEMP b))
(^) Convert short loops with a constant number of
iterations into multiple static statements.
for ( int i=0; i<=2; i++ ) { a[i] = 0; }
a[0] = 0; a[1] = 0; a[2] = 0;
Common Subexpression Elimination
a = b + c * d; e = b + c * d;
x = b + c * d; a = x; e = x;