Skip to content

Commit 1cbff93

Browse files
committed
Address review comments
1 parent 5b9cc46 commit 1cbff93

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
@@ -303,7 +303,7 @@ bool llvm::isDereferenceableAndAlignedInLoop(
303303
return false;
304304

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

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

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

0 commit comments

Comments
 (0)