File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ class RuntimePointerChecking {
655
655
// / For memory dependences that cannot be determined at compile time, it
656
656
// / generates run-time checks to prove independence. This is done by
657
657
// / AccessAnalysis::canCheckPtrAtRT and the checks are maintained by the
658
- // / RuntimePointerCheck class. AllowPartial determines whether partial checks
658
+ // / RuntimePointerCheck class. \p AllowPartial determines whether partial checks
659
659
// / are generated when not all pointers could be analyzed.
660
660
// /
661
661
// / If pointers can wrap or can't be expressed as affine AddRec expressions by
Original file line number Diff line number Diff line change @@ -697,7 +697,8 @@ class AccessAnalysis {
697
697
// / Returns true if we need no check or if we do and we can generate them
698
698
// / (i.e. the pointers have computable bounds). A return value of false means
699
699
// / we couldn't analyze and generate runtime checks for all pointers in the
700
- // / loop, but we will have checks for those pointers we could analyze.
700
+ // / loop, but if \p AllowPartial is set then we will have checks for those
701
+ // / pointers we could analyze.
701
702
bool canCheckPtrAtRT (RuntimePointerChecking &RtCheck, Loop *TheLoop,
702
703
const DenseMap<Value *, const SCEV *> &Strides,
703
704
Value *&UncomputablePtr, bool AllowPartial);
@@ -1330,6 +1331,7 @@ bool AccessAnalysis::canCheckPtrAtRT(
1330
1331
// are needed. This can happen when all pointers point to the same underlying
1331
1332
// object for example.
1332
1333
RtCheck.Need = CanDoRT ? RtCheck.getNumberOfChecks () != 0 : MayNeedRTCheck;
1334
+
1333
1335
bool CanDoRTIfNeeded = !RtCheck.Need || CanDoRT;
1334
1336
assert (CanDoRTIfNeeded == (CanDoRT || !MayNeedRTCheck) &&
1335
1337
" CanDoRTIfNeeded depends on RtCheck.Need" );
You can’t perform that action at this time.
0 commit comments