Skip to content

Commit 872663b

Browse files
committed
[AMDGPU] Update again.
1 parent 8e400b9 commit 872663b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,6 @@ static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca,
464464
CurPtr = CurGEP->getPointerOperand();
465465
}
466466

467-
// Only one dynamic index is allowed in the entire GEP chain.
468-
// Abort if a different index variable is encountered.
469-
if (VarOffsets.size() > 1)
470-
return nullptr;
471-
472467
assert(CurPtr == Alloca && "GEP not based on alloca");
473468

474469
unsigned VecElemSize = DL.getTypeAllocSize(VecElemTy);

0 commit comments

Comments
 (0)