... effect at beginning/end of BB. Global: within a procedure (across ... 11. Reaching Definitions - Solving the Data Flow Equations. c = c c. Exit. BB 1. BB 2 ...
k. i. Example: Loop Tiling. X. for kk := 1 to N by B do. for jj := 1 to N by B do. for i := 1 to N do ... Then run the executor loop using this decision ...
Instruction scheduling refers to re-ordering instructions in a program to ... Instructions scheduling is still an active area of research because of the ...
try to color this graph with R colors ... Using variable names as candidates is not a good approach: ... We pick a color for v that different from the colors of ...
Fortran and Pascal have all well-behaved loops. For C, only a subset are well-behaved, defined as ... exp3 increments or decrements i by a loop constant ...
d2: j = n d6: a = u2. d3: a = u1 d7: a = u3. d4: i = i 1 ... a = u2. i = m-1. j = n. a = u1. F. 15. Reaching Definitions - Example. d1: i = m-1 d5: j = j-1 ...
Register allocation is extremely important ... defsave is saving for defining a value in a register vs- memory ... Register Allocation by Graph Coloring ...
o Computations producing no visible result other than ... o Computations do not depend on sign of zero. ... permits the optimizer to attempt replacing computations of ...
{ move loop-invariant instruction to L's pre-hearder. if ( 1. BB s dominates ... the BBs in breadth ... Move 'loop-invariant' into pre-header and protect with a ...
... is said to post-dominate n', denoted n pdom n', iff every path from n' to Exit contains n. ... denoted by n pdomp n', iff n pdom n' and n n'. 2 pdomp 1 ; ...
Sun Microsystems Workshop C Compiler v 5.0 -fsimple=1. Allows conservative simplifications. ... Sun Microsystems Workshop C Compiler v 5.0 -fsimple=2 ...
We will only consider reducible CFG's , so we can just look for a retreating edge e = (t,h) E. ... BB h. BB t. 8. Natural Loops and Reducible Graphs ...
Sun SPARC. IA32 / Pentium. IA64 / Itanium. PowerPC. Good Software Engineering ... Global: within a procedure (across BBs) Consider the effect of control flow ...
Optimization: the transformation of a program P into a program P' ... is said to post-dominate n', denoted n pdom n', iff every path from n' to Exit contains n. ...
A Basic Block (BB) is a maximal section of 'straight-line' code which can only ... that follow it up to but not including the next leader or exit constitute one BB. ...