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

Method CheckInit

source/opt/loop_fusion.cpp:251–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251bool LoopFusion::CheckInit() {
252 int64_t loop_0_init;
253 if (!loop_0_->GetInductionInitValue(induction_0_, &loop_0_init)) {
254 return false;
255 }
256
257 int64_t loop_1_init;
258 if (!loop_1_->GetInductionInitValue(induction_1_, &loop_1_init)) {
259 return false;
260 }
261
262 if (loop_0_init != loop_1_init) {
263 return false;
264 }
265
266 return true;
267}
268
269bool LoopFusion::CheckCondition() {
270 auto condition_0 = loop_0_->GetConditionInst();

Callers

nothing calls this directly

Calls 1

GetInductionInitValueMethod · 0.80

Tested by

no test coverage detected