qsharp-compiler icon indicating copy to clipboard operation
qsharp-compiler copied to clipboard

Consider using phi nodes instead of pointers to represent mutable variables

Open bettinaheim opened this issue 4 years ago • 0 comments

Right now, we use a pointer to store and load the current value for variables in QIR when they are declared as mutable in Q#. I believe we should be able to make this proper SSA by using phi nodes instead. We should properly consider that.

bettinaheim avatar Jul 26 '21 14:07 bettinaheim