MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / RemoveBasicBlock

Method RemoveBasicBlock

source/opt/loop_descriptor.h:217–221  ·  view source on GitHub ↗

Removes the Basic Block id |bb_id| from this loop and its parents. It the user responsibility to make sure the removed block is not a merge, header or continue block.

Source from the content-addressed store, hash-verified

215 // It the user responsibility to make sure the removed block is not a merge,
216 // header or continue block.
217 void RemoveBasicBlock(uint32_t bb_id) {
218 for (Loop* loop = this; loop != nullptr; loop = loop->parent_) {
219 loop->loop_basic_blocks_.erase(bb_id);
220 }
221 }
222
223 // Removes all the basic blocks from the set of basic blocks within the loop.
224 // This does not affect any of the stored pointers to the header, preheader,

Callers 2

SplitLoopHeaderMethod · 0.80
FuseMethod · 0.80

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected