aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopPeel.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-09-19 15:06:08 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2022-09-19 18:57:33 -0400
commit0d8ffcc532ebd1ec5c7f69313be53274d140f72f (patch)
treef67748102b02fac74e5e344ef6aa1e0367fdec6b /llvm/lib/Transforms/Utils/LoopPeel.cpp
parent3f77df8e29989c15c04c5ab628f12871a5ae2bc0 (diff)
downloadllvm-0d8ffcc532ebd1ec5c7f69313be53274d140f72f.zip
llvm-0d8ffcc532ebd1ec5c7f69313be53274d140f72f.tar.gz
llvm-0d8ffcc532ebd1ec5c7f69313be53274d140f72f.tar.bz2
Analysis: Add AssumptionCache argument to isDereferenceableAndAlignedPointer
This does not try to pass it through from the end users.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopPeel.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopPeel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopPeel.cpp b/llvm/lib/Transforms/Utils/LoopPeel.cpp
index 87b4ce0..1600710 100644
--- a/llvm/lib/Transforms/Utils/LoopPeel.cpp
+++ b/llvm/lib/Transforms/Utils/LoopPeel.cpp
@@ -202,7 +202,7 @@ static unsigned peelToTurnInvariantLoadsDerefencebale(Loop &L,
if (auto *LI = dyn_cast<LoadInst>(&I)) {
Value *Ptr = LI->getPointerOperand();
if (DT.dominates(BB, Latch) && L.isLoopInvariant(Ptr) &&
- !isDereferenceablePointer(Ptr, LI->getType(), DL, LI, &DT))
+ !isDereferenceablePointer(Ptr, LI->getType(), DL, LI, nullptr, &DT))
for (Value *U : I.users())
LoadUsers.insert(U);
}