We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 831ab58 commit b3e395aCopy full SHA for b3e395a
IGC/VectorCompiler/lib/GenXCodeGen/GenXDeadVectorRemoval.cpp
@@ -217,15 +217,6 @@ static bool isRootInst(Instruction *Inst) {
217
if (isa<ReturnInst>(Inst) || isa<BranchInst>(Inst) ||
218
Inst->isTerminator() || Inst->mayHaveSideEffects())
219
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
229
if (auto CI = dyn_cast<CallInst>(Inst))
230
return !CI->onlyReadsMemory();
231
return false;
0 commit comments