Lecture7 - SSA Construction Lecture 7 CS 501 April 22, 2009...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
SSA Construction Lecture 7 CS 501 April 22, 2009 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Preliminaries Critiques EfFciently Computing Static Single Assignment ±orm and the Control Dependence Graph Cytron, Ferrante, Rosen, Wegman, and Zadeck HW 2 now posted Building, using SSA 2
Background image of page 2
Overview Quick review of SSA Building SSA Dominance frontiers Inserting Φ instructions Renaming variables to unique versions Loop invariant code motion Translating out of SSA 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Recap Static single assignment form (SSA) Sparse data Fow representation between de±nitions and uses: Each de±nition is a unique assignment Each use refers to a single de±nition Φ introduced at merge points Enhances / simpli±es many optimizations 4
Background image of page 4
Straight-line example 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Merge points V = 1 V = 2 V = 3 Y = V Z = V X = V 6
Background image of page 6
Merge points V 1 = 1 V 2 = 2 V 3 = 3 V 4 = ! (V 1, V 2, V 3) Y = V 4 Z = V 4 X = V 4 7
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
v = 0 v = 1 x = v v = foo() y = v v = x + 1 A B C D E F G H I Another example 8
Background image of page 8
Another example v1 = 0 v3 = 1 v5 = ! (v1,v2) x = v5 v4 = foo() v6 = ! (v3,v4) v7 = ! (v2,v6) y = v7 v2 = x + 1 A B C D E F G H I 9
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Constraints on SSA 10
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/09/2012 for the course CSE 403 taught by Professor Staff during the Spring '08 term at University of Washington.

Page1 / 30

Lecture7 - SSA Construction Lecture 7 CS 501 April 22, 2009...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online