Contents
Page-10
Prev
Next
Page+10
Index
Data Flow Analysis for a Block
Computed and killed vectors for a basic block can be
found as follows:
- initially, comp := ∅ and kill := ∅ .
- for each statement v := a ° b
where α ← a ° b
- comp := comp ∪ { α }
- kill := kill ∪ killv
- comp := (comp - killv) ∪ { v }
where killv is the set of all expressions involving v
directly or indirectly and (comp - killv) is set difference.
Example: I := I + 1
This statement first computes the expression I + 1,
but then it kills it because it redefines I.