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 904e5e0 commit 8700e91Copy full SHA for 8700e91
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
@@ -931,8 +931,8 @@ bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) {
931
GEP->users(), [&](const auto *U) { return isa<LoadInst>(U); });
932
if (auto *UserVecTy =
933
dyn_cast<FixedVectorType>(GEP->getSourceElementType())) {
934
- if (UsedInLoad &&
935
- UserVecTy->getNumElements() > PromoteAllocaDynamicIndexNumberElementLimit) {
+ if (UsedInLoad && UserVecTy->getNumElements() >
+ PromoteAllocaDynamicIndexNumberElementLimit) {
936
return RejectUser(Inst,
937
"user has too many elements for dynamic index");
938
}
0 commit comments