mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-21 04:38:09 +02:00
If there's only a single instruction in a basic block, then removing it would create an empty block. We seem to have trouble representing those as there are no instructions with an IP inside the block; several places mess up connections. While most blocks end in control flow instructions (which are rarely eliminated), ones preceding a DO instruction may end in an ordinary instruction. This makes such blocks tricky to merge with adjacent blocks - they may be between loops. Any optimization pass may may find such an instruction and want to eliminate it, and most of them are unprepared to perform such CFG link surgery. Nor do we want to make every pass aware of this issue. To work around this, we simply replace an instruction with a NOP when removing it from a block containing only that instruction, leaving the block in place. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28971> |
||
|---|---|---|
| .. | ||
| blorp | ||
| ci | ||
| common | ||
| compiler | ||
| decoder | ||
| dev | ||
| ds | ||
| genxml | ||
| isl | ||
| nullhw-layer | ||
| perf | ||
| shaders | ||
| tools | ||
| vulkan | ||
| vulkan_hasvk | ||
| meson.build | ||