HLSL: Fix #1249: Always execute both sides of ternary "?:".
authorJohn Kessenich <cepheus@frii.com>
Wed, 21 Feb 2018 04:29:05 +0000 (21:29 -0700)
committerJohn Kessenich <cepheus@frii.com>
Wed, 21 Feb 2018 04:32:33 +0000 (21:32 -0700)
commit4bee531fc1af0328ada33b150a3e0cb575172dc6
treee05e450a791c74fdfbafe01a53318957429efb75
parenta5cae0825966e7ebe65e1eea0ac05dc5da1f5e74
HLSL: Fix #1249: Always execute both sides of ternary "?:".

This is semantically required by HLSL, and frequently results in using
OpSelect instead of control flow.
17 files changed:
SPIRV/GlslangToSpv.cpp
Test/baseResults/hlsl.conditional.frag.out
Test/baseResults/hlsl.getsampleposition.dx10.frag.out
Test/baseResults/hlsl.implicitBool.frag.out
Test/baseResults/hlsl.intrinsics.lit.frag.out
Test/baseResults/hlsl.type.identifier.frag.out
Test/baseResults/spv.400.frag.out
Test/baseResults/spv.Operations.frag.out
Test/baseResults/spv.bitCast.frag.out
Test/baseResults/spv.conversion.frag.out
Test/baseResults/spv.debugInfo.frag.out
Test/baseResults/spv.sparseTexture.frag.out
Test/baseResults/spv.sparseTextureClamp.frag.out
Test/baseResults/spv.types.frag.out
glslang/Include/intermediate.h
glslang/MachineIndependent/Intermediate.cpp
glslang/MachineIndependent/intermOut.cpp