diff options
author | Jason Ekstrand <[email protected]> | 2016-08-31 14:45:08 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-09-02 11:24:09 -0700 |
commit | aad4f15506c2b5ff9f3304a467b51b45dd77554d (patch) | |
tree | 9708c093a41fb2d794afdd52bdbb89d5e7f7f57e /src/gallium/drivers | |
parent | 9a4d76e534920a54c28092311ab6da90c6d7b8d3 (diff) |
nir: Remove fake edges in the CF handling code
When NIR was first introduced, Connor added this fake-edge hack to work
around issues related to unreachable blocks. Thanks to GLSL IR's jump
lowering code, the only unreachable code you can have is a block after an
infinite loop. With SPIR-V, we didn't have the jump lowering code so we
could also end up with the "if (...) { break; } else { continue; }" case
which generates an unreachable block after the if. Because of this, most
of NIR had to be fixed up for handling unreachable blocks. The only
remaining case of not handling unreachable blocks was specifically the
block-after-infinite-loop case in dead_cf which was fixed by the previous
commit. We can now delete the fake edge hack.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
0 files changed, 0 insertions, 0 deletions