Skip to content

Commit

Permalink
[MemCpyOpt] Use BatchAA in one more place (NFCI)
Browse files Browse the repository at this point in the history
Everything else in this method using BatchAA, apart from this
call.
  • Loading branch information
nikic committed Sep 27, 2024
1 parent 32719c4 commit 296901f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,7 @@ bool MemCpyOptPass::processImmutArgument(CallBase &CB, unsigned ArgNo) {
return false;

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

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

0 comments on commit 296901f

Please sign in to comment.