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
Optimizing compiler
(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!
=== SSA-based optimizations === These optimizations are intended to be done after transforming the program into a special form called [[SSA (compilers)|Static Single Assignment]], in which every variable is assigned in only one place. Although some function without SSA, they are most effective with SSA. Many optimizations listed in other sections also benefit with no special changes, such as register allocation. ;[[Global value numbering]]: GVN eliminates redundancy by constructing a value graph of the program, and then determining which values are computed by equivalent expressions. GVN can identify some redundancy that [[common subexpression elimination]] cannot, and vice versa. ;[[Sparse conditional constant propagation]]: Combines constant propagation, [[constant folding]], and [[dead-code elimination]], and improves upon what is possible by running them separately.<ref>{{cite journal|last1=Wegman|first1=Mark N.|last2=Zadeck|first2=F. Kenneth|url=https://bears.ece.ucsb.edu/class/ece253/papers/wegman91.pdf|title=Constant Propagation with Conditional Branches|journal=[[ACM Transactions on Programming Languages and Systems]]|volume=13|issue=2|date=April 1991|pages=181β210|doi=10.1145/103135.103136}}</ref><ref>{{cite journal|last1=Click|first1=Clifford|last2=Cooper|first2=Keith.|url=https://scholarship.rice.edu/bitstream/handle/1911/96451/TR95-252.pdf?sequence=1&isAllowed=y|title=Combining Analyses, Combining Optimizations|journal=ACM Transactions on Programming Languages and Systems|volume=17|issue=2|date=March 1995|pages=181β196|doi=10.1145/201059.201061}}</ref> This optimization symbolically executes the program, simultaneously propagating constant values and eliminating portions of the [[control-flow graph]] that this makes unreachable.
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)