Skip to content

Commit b3e395a

Browse files
Anton Sidorenkoigcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: b697995
Fix incorrect wrregion optimization If wrregion intrinsic is used to write to a predefined register, it must not be optimized by genx vector removal.
1 parent 831ab58 commit b3e395a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXDeadVectorRemoval.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,6 @@ static bool isRootInst(Instruction *Inst) {
217217
if (isa<ReturnInst>(Inst) || isa<BranchInst>(Inst) ||
218218
Inst->isTerminator() || Inst->mayHaveSideEffects())
219219
return true;
220-
221-
// Even if the whole region is overwritten by a chain of wrregions, wrregions
222-
// to predefined register must not be optimized as they are extremely
223-
// specific.
224-
if (GenXIntrinsic::isWrRegion(Inst) &&
225-
GenXIntrinsic::isReadPredefReg(
226-
Inst->getOperand(GenXIntrinsic::GenXRegion::OldValueOperandNum)))
227-
return true;
228-
229220
if (auto CI = dyn_cast<CallInst>(Inst))
230221
return !CI->onlyReadsMemory();
231222
return false;

0 commit comments

Comments
 (0)