summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_phi_builder.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-09-16 22:04:57 -0700
committerJason Ekstrand <[email protected]>2016-10-01 15:40:34 -0700
commitef3c5ac7fb915f489a553fa9d9a0c96d219545ad (patch)
treedfc488432c16263dfe38e532aa3730a6664a3617 /src/compiler/nir/nir_phi_builder.h
parent4d02faede57b782264ab97d57919e9dad7dd8131 (diff)
nir/spirv/cfg: Detect switch_break after loop_break/continue
While the current CFG code is valid in the case where a switch break also happens to be a loop continue, it's a bit suboptimal. Since hardware is capable of handling the continue as a direct jump, it's better to use a continue instruction when we can than to bother with all of the nasty switch break lowering. Signed-off-by: Jason Ekstrand <[email protected]> Cc: "12.0" <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_phi_builder.h')
0 files changed, 0 insertions, 0 deletions