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
Register allocation
(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!
==== Hybrid allocation ==== Some other register allocation approaches do not limit to one technique to optimize register's use. Cavazos et al., for instance, proposed a solution where it is possible to use both the linear scan and the graph coloring algorithms.{{sfn|Eisl|Marr|Würthinger|Mössenböck|2017|p=11}} In this approach, the choice between one or the other solution is determined dynamically: first, a [[machine learning]] algorithm is used "offline", that is to say not at runtime, to build a heuristic function that determines which allocation algorithm needs to be used. The heuristic function is then used at runtime; in light of the code behavior, the allocator can then choose between one of the two available algorithms.{{sfn|Cavazos|Moss|O’Boyle|2006|p=124-127}} Trace register allocation is a recent approach developed by Eisl et al.{{sfn|Eisl|Grimmer|Simon|Würthinger|2016|p=14:1}}{{sfn|Eisl|Grimmer|Simon|Würthinger|2016|p=1}} This technique handles the allocation locally: it relies on dynamic [[Profiling (computer programming)|profiling]] data to determine which branches will be the most frequently used in a given control flow graph. It then infers a set of "traces" (i.e. code segments) in which the merge point is ignored in favor of the most used branch. Each trace is then independently processed by the allocator. This approach can be considered as hybrid because it is possible to use different register allocation algorithms between the different traces.{{sfn|Eisl|Grimmer|Simon|Würthinger|2016|p=4}}
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)