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

Method MovableInstruction

source/opt/loop_fission.cpp:112–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110};
111
112bool LoopFissionImpl::MovableInstruction(const Instruction& inst) const {
113 return inst.opcode() == spv::Op::OpLoad ||
114 inst.opcode() == spv::Op::OpStore ||
115 inst.opcode() == spv::Op::OpSelectionMerge ||
116 inst.opcode() == spv::Op::OpPhi || inst.IsOpcodeCodeMotionSafe();
117}
118
119void LoopFissionImpl::TraverseUseDef(Instruction* inst,
120 std::set<Instruction*>* returned_set,

Callers

nothing calls this directly

Calls 2

opcodeMethod · 0.45

Tested by

no test coverage detected