Skip to content

Commit 20db716

Browse files
committed
[ValueTracking] Only check up to CtxIter in willNotFreeBetween.
Only check up to CtxI (CtxIter) when checking for calls that may free in CtxI's block. Missed update in llvm/llvm-project#167965. This should be NFC, as all current callers pass a terminator that is guaranteed to not free as CtxI
1 parent ea66d26 commit 20db716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ValueTracking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ bool llvm::willNotFreeBetween(const Instruction *Assume,
729729
if (CtxBB->getSinglePredecessor() != AssumeBB)
730730
return false;
731731

732-
if (!hasNoFreeCalls(make_range(CtxBB->begin(), CtxBB->end())))
732+
if (!hasNoFreeCalls(make_range(CtxBB->begin(), CtxIter)))
733733
return false;
734734

735735
CtxIter = AssumeBB->end();

0 commit comments

Comments
 (0)