Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Use-define chain
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Method of building a ''use-def'' (or ''ud'') chain == # Set definitions in statement {{tmath|s(0)}} # For each {{mvar|i}} in {{tmath|[1,n]}}, find live definitions that have use in statement {{tmath|s(i)}} # Make a link among definitions and uses # Set the statement {{tmath|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 {{tmath|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.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)