Skip to content

Commit 296901f

Browse files
committed
[MemCpyOpt] Use BatchAA in one more place (NFCI)
Everything else in this method using BatchAA, apart from this call.
1 parent 32719c4 commit 296901f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ bool MemCpyOptPass::processImmutArgument(CallBase &CB, unsigned ArgNo) {
20242024
return false;
20252025

20262026
// 4. The memcpy src must not be modified during the call.
2027-
if (isModSet(AA->getModRefInfo(&CB, MemoryLocation::getForSource(MDep))))
2027+
if (isModSet(BAA.getModRefInfo(&CB, MemoryLocation::getForSource(MDep))))
20282028
return false;
20292029

20302030
LLVM_DEBUG(dbgs() << "MemCpyOptPass: Forwarding memcpy to Immut src:\n"

0 commit comments

Comments
 (0)