Method of Building A use-def (or ud) Chain
- Set definitions in statement s(0)
- For each i in, find live definitions that have use in statement s(i)
- Make a link among definitions and uses
- Set the statement s(i), as definition statement
- Kill previous definitions
With this algorithm, two things are accomplished:
- A directed acyclic graph (DAG) is created on the variable uses and definitions. The DAG specifies a data dependency among assignment statements, as well as a partial order (therefore parallelism among statements).
- When statement s(i) is reached, there is a list of live variable assignments. If only one assignment is live, for example, constant propagation might be used.
Read more about this topic: Use-define Chain
Famous quotes containing the words method, building and/or chain:
“You know, I have a method all my own. If youll notice, the coat came first, then the tie, then the shirt. Now, according to Hoyle, after that the pants should be next. Theres where Im different. I go for the shoes next. First the right, then the left. After that, its every man for himself.”
—Robert Riskin (18971955)
“History is a child building a sand-castle by the sea, and that child is the whole majesty of mans power in the world.”
—Heraclitus (c. 535475 B.C.)
“Oft, in the stilly night, Ere Slumbers chain has bound me, Fond Memory brings the light Of other days around me.”
—Thomas Moore (17791852)
Related Phrases
Related Words