@@ -628,9 +628,9 @@ void RuntimePointerChecking::groupChecks(
628628 //
629629 // In the above case, we have a non-constant distance and an Unknown
630630 // dependence between accesses to the same underlying object, and could retry
631- // with runtime checks. Therefore UseDependencies is false . In this case we
632- // will use the fallback path and create separate checking groups for all
633- // pointers .
631+ // with runtime checks without dependency information being available . In this
632+ // case we will use the fallback path and create separate checking groups for
633+ // accesses not present in DepCands .
634634
635635 unsigned TotalComparisons = 0 ;
636636
@@ -840,8 +840,7 @@ class AccessAnalysis {
840840 // / loop, but if \p AllowPartial is set then we will have checks for those
841841 // / pointers we could analyze. \p DepChecker is used to remove unknown
842842 // / dependences from DepCands.
843- bool canCheckPtrAtRT (RuntimePointerChecking &RtCheck, ScalarEvolution *SE,
844- Loop *TheLoop,
843+ bool canCheckPtrAtRT (RuntimePointerChecking &RtCheck, Loop *TheLoop,
845844 const DenseMap<Value *, const SCEV *> &Strides,
846845 Value *&UncomputablePtr, bool AllowPartial,
847846 const MemoryDepChecker &DepChecker);
@@ -1310,7 +1309,7 @@ bool AccessAnalysis::createCheckForAccess(
13101309}
13111310
13121311bool AccessAnalysis::canCheckPtrAtRT (
1313- RuntimePointerChecking &RtCheck, ScalarEvolution *SE, Loop *TheLoop,
1312+ RuntimePointerChecking &RtCheck, Loop *TheLoop,
13141313 const DenseMap<Value *, const SCEV *> &StridesMap, Value *&UncomputablePtr,
13151314 bool AllowPartial, const MemoryDepChecker &DepChecker) {
13161315 // Find pointers with computable bounds. We are going to use this information
@@ -2742,9 +2741,9 @@ bool LoopAccessInfo::analyzeLoop(AAResults *AA, const LoopInfo *LI,
27422741 // Find pointers with computable bounds. We are going to use this information
27432742 // to place a runtime bound check.
27442743 Value *UncomputablePtr = nullptr ;
2745- HasCompletePtrRtChecking = Accesses. canCheckPtrAtRT (
2746- *PtrRtChecking, PSE-> getSE (), TheLoop, SymbolicStrides, UncomputablePtr ,
2747- AllowPartial, getDepChecker ());
2744+ HasCompletePtrRtChecking =
2745+ Accesses. canCheckPtrAtRT ( *PtrRtChecking, TheLoop, SymbolicStrides,
2746+ UncomputablePtr, AllowPartial, getDepChecker ());
27482747 if (!HasCompletePtrRtChecking) {
27492748 const auto *I = dyn_cast_or_null<Instruction>(UncomputablePtr);
27502749 recordAnalysis (" CantIdentifyArrayBounds" , I)
@@ -2771,8 +2770,8 @@ bool LoopAccessInfo::analyzeLoop(AAResults *AA, const LoopInfo *LI,
27712770
27722771 UncomputablePtr = nullptr ;
27732772 HasCompletePtrRtChecking = Accesses.canCheckPtrAtRT (
2774- *PtrRtChecking, PSE-> getSE (), TheLoop, SymbolicStrides,
2775- UncomputablePtr, AllowPartial, getDepChecker ());
2773+ *PtrRtChecking, TheLoop, SymbolicStrides, UncomputablePtr ,
2774+ AllowPartial, getDepChecker ());
27762775
27772776 // Check that we found the bounds for the pointer.
27782777 if (!HasCompletePtrRtChecking) {
0 commit comments