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 13a43bd commit bf8a22dCopy full SHA for bf8a22d
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
@@ -394,12 +394,9 @@ static Value *calculateVectorIndex(
394
auto I = GEPIdx.find(GEP);
395
assert(I != GEPIdx.end() && "Must have entry for GEP!");
396
397
- if (Value *IndexValue = I->second)
+ Value *IndexValue = I->second;
398
+ assert(IndexValue && "index value missing from GEP index map");
399
return IndexValue;
-
400
- llvm_unreachable(
401
- "Index value is not present in Cached GEPs! This indicates a "
402
- "bug in the pass that populates GEPIdx.");
403
}
404
405
static Value *GEPToVectorIndex(GetElementPtrInst *GEP, AllocaInst *Alloca,
0 commit comments