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

Method IsImmediatelyContainedInLoop

source/opt/licm_pass.cpp:114–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114bool LICMPass::IsImmediatelyContainedInLoop(Loop* loop, Function* f,
115 BasicBlock* bb) {
116 LoopDescriptor* loop_descriptor = context()->GetLoopDescriptor(f);
117 return loop == (*loop_descriptor)[bb->id()];
118}
119
120bool LICMPass::HoistInstruction(Loop* loop, Instruction* inst) {
121 BasicBlock* pre_header_bb = loop->GetOrCreatePreHeaderBlock();

Callers

nothing calls this directly

Calls 2

GetLoopDescriptorMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected