Skip to content

Commit bc847d5

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: 24ed4f3: Changes in code
Changes in code
1 parent 35f35fb commit bc847d5

2 files changed

Lines changed: 0 additions & 69 deletions

File tree

IGC/Compiler/CISACodeGen/MemOpt.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,13 +2233,6 @@ bool SymbolicPointer::checkTerms(const Term *T, const Term *OtherT, int64_t &Off
22332233
if (checkInstructions(Inst, OtherInst))
22342234
return true;
22352235

2236-
// OpNum == 3 is a sentinel set by checkInstructions() when both operands of
2237-
// the top-level instructions are identical. Guard here before calling
2238-
// getOperand(OpNum) to avoid an out-of-bounds access on a two-operand
2239-
// BinaryOperator.
2240-
if (OpNum == 3)
2241-
return false;
2242-
22432236
auto InstOp0 = dyn_cast<BinaryOperator>(Inst->getOperand(OpNum));
22442237
auto OtherInstOp0 = dyn_cast<BinaryOperator>(OtherInst->getOperand(OpNum));
22452238
if (checkInstructions(InstOp0, OtherInstOp0))

IGC/Compiler/tests/MemOpt/check-terms-same-operands.ll

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)