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 671de2f commit 3b72499Copy full SHA for 3b72499
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
@@ -927,8 +927,8 @@ bool AMDGPUPromoteAllocaImpl::tryPromoteAllocaToVector(AllocaInst &Alloca) {
927
return RejectUser(Inst, "cannot compute vector index for GEP");
928
929
if (!isa<ConstantInt>(Index)) {
930
- bool UsedInLoad = llvm::any_of(GEP->users(),
931
- [&](const auto *U){ return isa<LoadInst>(U); });
+ bool UsedInLoad = llvm::any_of(
+ GEP->users(), [&](const auto *U){ return isa<LoadInst>(U); });
932
if (auto *UserVecTy =
933
dyn_cast<FixedVectorType>(GEP->getSourceElementType())) {
934
if (UsedInLoad &&
0 commit comments