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

Method SetMergeBlock

source/opt/loop_descriptor.cpp:308–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void Loop::SetMergeBlock(BasicBlock* merge) {
309#ifndef NDEBUG
310 assert(merge->GetParent() && "The basic block does not belong to a function");
311#endif // NDEBUG
312 assert(!IsInsideLoop(merge) && "The merge block is in the loop");
313
314 SetMergeBlockImpl(merge);
315 if (GetHeaderBlock()->GetLoopMergeInst()) {
316 UpdateLoopMergeInst();
317 }
318}
319
320void Loop::SetPreHeaderBlock(BasicBlock* preheader) {
321 if (preheader) {

Callers 9

PeelBeforeMethod · 0.80
PeelAfterMethod · 0.80
PopulateLoopDescMethod · 0.80
PerformUnswitchMethod · 0.80
FuseMethod · 0.80
DuplicateLoopMethod · 0.80

Calls 2

GetLoopMergeInstMethod · 0.80
GetParentMethod · 0.45

Tested by

no test coverage detected