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 e69c5d7 commit df0dd7bCopy full SHA for df0dd7b
llvm/lib/Analysis/ScalarEvolution.cpp
@@ -6296,12 +6296,6 @@ const SCEV *ScalarEvolution::createNodeForGEP(GEPOperator *GEP) {
6296
assert(GEP->getSourceElementType()->isSized() &&
6297
"GEP source element type must be sized");
6298
6299
- const DataLayout &DL = F.getParent()->getDataLayout();
6300
- // FIXME: Ideally, we should teach Scalar Evolution to
6301
- // understand fat pointers.
6302
- if (DL.isFatPointer(GEP->getPointerOperandType()->getPointerAddressSpace()))
6303
- return getUnknown(GEP);
6304
-
6305
SmallVector<const SCEV *, 4> IndexExprs;
6306
for (Value *Index : GEP->indices())
6307
IndexExprs.push_back(getSCEV(Index));
0 commit comments