Skip to content

Commit

Permalink
MemCpyOpt: Pass through AssumptionCache
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenm committed Sep 19, 2022
1 parent 555af02 commit c867401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Expand Up @@ -920,7 +920,7 @@ bool MemCpyOptPass::performCallSlotOptzn(Instruction *cpyLoad,
// trap. Otherwise the transform is invalid since it might cause a trap
// to occur earlier than it otherwise would.
if (!isDereferenceableAndAlignedPointer(cpyDest, Align(1), APInt(64, cpySize),
DL, C, nullptr, DT)) {
DL, C, AC, DT)) {
LLVM_DEBUG(dbgs() << "Call Slot: Dest pointer not dereferenceable\n");
return false;
}
Expand Down

0 comments on commit c867401

Please sign in to comment.