Skip to content

Commit df0dd7b

Browse files
committed
[CHERI] Enable SCEV for CHERI pointers.
Per communication with CHERI upstream, this is expected to work at this point.
1 parent e69c5d7 commit df0dd7b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6296,12 +6296,6 @@ const SCEV *ScalarEvolution::createNodeForGEP(GEPOperator *GEP) {
62966296
assert(GEP->getSourceElementType()->isSized() &&
62976297
"GEP source element type must be sized");
62986298

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-
63056299
SmallVector<const SCEV *, 4> IndexExprs;
63066300
for (Value *Index : GEP->indices())
63076301
IndexExprs.push_back(getSCEV(Index));

0 commit comments

Comments
 (0)