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

Function IsBasicBlockSafeToClone

source/opt/loop_descriptor.cpp:392–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390namespace {
391
392inline bool IsBasicBlockSafeToClone(IRContext* context, BasicBlock* bb) {
393 for (Instruction& inst : *bb) {
394 if (!inst.IsBranch() && !context->IsCombinatorInstruction(&inst))
395 return false;
396 }
397
398 return true;
399}
400
401} // namespace
402

Callers 1

IsSafeToCloneMethod · 0.85

Calls 2

IsBranchMethod · 0.80

Tested by

no test coverage detected