matt-kempster/m2c

SetPhiStmt's should be emitted in the right order

simonlindholm opened this issue · 0 comments

Currently we can output e.g.

            phi_v0 = temp_v0;
            phi_v1 = phi_v0;

where we pretend that all these phi's are assigned atomically, but obviously that's not the case in C.

If there are cycles, this might need forced temp emissions.