Skip to content

Commit 88a3e74

Browse files
committed
Address review comments
1 parent de8ce11 commit 88a3e74

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Analysis/Loads.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ bool llvm::isDereferenceableAndAlignedInLoop(
304304
return false;
305305

306306
const SCEV *MaxBECount =
307-
SE.getPredicatedSymbolicMaxBackedgeTakenCount(L, *Predicates);
307+
SE.getPredicatedConstantMaxBackedgeTakenCount(L, *Predicates);
308308
if (isa<SCEVCouldNotCompute>(MaxBECount))
309309
return false;
310310

@@ -318,11 +318,6 @@ bool llvm::isDereferenceableAndAlignedInLoop(
318318
const SCEV *PtrDiff = SE.getMinusSCEV(AccessEnd, AccessStart);
319319
APInt MaxPtrDiff = SE.getUnsignedRangeMax(PtrDiff);
320320

321-
// If the (max) pointer difference is > 32 bits then it's unlikely to be
322-
// dereferenceable.
323-
if (MaxPtrDiff.getActiveBits() > 32)
324-
return false;
325-
326321
Value *Base = nullptr;
327322
APInt AccessSize;
328323
if (const SCEVUnknown *NewBase = dyn_cast<SCEVUnknown>(AccessStart)) {

0 commit comments

Comments
 (0)