No idea how to test this with lit.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
You should be able to test this by writing an IR program with a return that isn't in the final block.
Comment Actions
No, that doesn't work. The codegen reorders blocks if I just slightly change the problematic shader.