-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
split local
#94
Comments
Great idea! For the naming, if we can't come up with a better name, I think One issue we need to consider is converting between method-wide or block-wide locals:
Another problem is the generation of locals:
|
@long-long-float, do you have a idea about this? |
It's okey to emit instructions, which are all This method is straightforward: Visit every basic block to know what variables must be
In this case, |
We could use the new |
I am planning to split
local
into two variablesThe name
global
conflict the name of global variables shared by some functions, so it is considerable to change it.The reason I want to change it is for ease of writing optimizations.
Currently, it is difficult to write optimizations because every variable may be referred by other basic blocks.
By split them into
local
andglobal
, we may implement optimizations with ease.Yes,
BasicBlock::isLocallyLimited
can checi it. But I am wondering it is always right.@doe300 What do you think about this?
The text was updated successfully, but these errors were encountered: