Skip to content

Commit c92bdc8

Browse files
aparshin-inteligcbot
authored andcommitted
remove useless assert from CMRegion
1 parent adaeac7 commit c92bdc8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

IGC/VectorCompiler/lib/GenXOpts/CMTrans/CMRegion.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,6 @@ Instruction *CMRegion::createRdRegion(Value *Input, const Twine &Name,
291291
Instruction *InsertBefore, const DebugLoc &DL, bool AllowScalar)
292292
{
293293
IGC_ASSERT(ElementBytes && "not expecting i1 element type");
294-
auto OffsetInElem = Offset / ElementBytes;
295-
(void)OffsetInElem;
296-
IGC_ASSERT_MESSAGE(
297-
Indirect ||
298-
(OffsetInElem >= 0 &&
299-
OffsetInElem < cast<VectorType>(Input->getType())->getNumElements()),
300-
"initial offset is out of range of input vector");
301294

302295
Value *StartIdx = getStartIdx(Name, InsertBefore, DL);
303296
IntegerType *I32Ty = Type::getInt32Ty(Input->getContext());

0 commit comments

Comments
 (0)