SPIRV-Cross/reference/shaders-msl/asm
Hans-Kristian Arntzen d4e470babd Analyze the CFG for temporaries as well.
Normally, temporary declaration must dominate any use of it,
so we generally did not need to analyze the CFG for these variables,
but there is an edge case where you have an inliner doing:

do {
	create_temporary;
	break;
} while(0);

use_temporary;

The inside of the loop dominates the outer scope, but we cannot emit
code like this in GLSL, so make sure we hoist these temporaries outside
the "loop".
2018-01-12 10:56:11 +01:00
..
comp Enhancements to MSL compute and entry point naming. 2017-11-05 21:34:42 -05:00
frag Analyze the CFG for temporaries as well. 2018-01-12 10:56:11 +01:00
vert Handle empty struct declarations with best effort. 2017-10-06 13:05:14 +02:00