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
Meta issue: SSA for variable #3904
Comments
Hi, I can work on this |
@stuartarchibald, i remember you started looking at this. Can you give us an update? |
@sklam, can you point me a direction on the source code? I saw that the dominator tree algorithm is implemented on |
@sklam IIRC I've got the dominance frontier and dominator tree and was working on the data flow equations for phi node insertion. |
Hi @stuartarchibald, the code for the dominance frontier is in the |
@guilhermeleobas its not, I just hacked it together locally in the simplest way (form up dominance tree and mask off each vertex in turn) so I could start working on where to put phi nodes. If you are familiar with these concepts and the algorithms involved please feel free to write an implementation, it would be interesting to compare notes/you may well get this finished ahead of me doing it! Thanks. |
Cool, I will start working on that as soon as I have some cycles to spare. |
Implemented in #5351, closing. |
Feature request
Use SSA for variables.
func_ir.get_definitions()
problemsfoo
has one name in all basic-blocks. Analysis cannot easily tell what localfoo
definition must be. For instance, ifbool(pred)==True
, we know thatfoo == True
in the "then" block.Work items:
interpreter.py
The text was updated successfully, but these errors were encountered: