CS553 Lecture Using Static Single Assignment 2
Using Static Single Assignment Form
Announcements
– Project 2 schedule due today – HW1 due Friday
Last Time
– SSA Technicalities
Today
Using Static Single Assignment Form Announcements Project 2 - - PowerPoint PPT Presentation
Using Static Single Assignment Form Announcements Project 2 schedule due today HW1 due Friday Last Time SSA Technicalities Today Constant propagation Loop invariant code motion Induction variables CS553 Lecture
Announcements
Last Time
Today
Goal
Uses
Simple constants Kildall [1973]
Conditional constants Wegbreit [1975]
Simple constant propagation: analysis is “reaching constants”
Reaching constants for simple constant propagation
c ⊤ = c c ⊥ = ⊥ c d = ⊥ if c ≠ d c d = c if c = d
c if cy=Iny & cz=Inz, then cy ⊕ cz, else ⊤or ⊥
Pessimistic
Optimistic
Standard worklist algorithm
Reif and Lewis algorithm Reif and Lewis [1977]
Complexity
Dead code elimination
Induction variable identification
Why bother?
Simple approach
Types of Induction Variables
Informal SSA-based Algorithm
Informal SSA-based Algorithm (cont)
Reading
Lecture