aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.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/Analysis/ValueTracking.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/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 5f22714..7c0e0e6 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -4785,8 +4785,9 @@ bool llvm::isSafeToSpeculativelyExecuteWithOpcode(
return false;
const DataLayout &DL = LI->getModule()->getDataLayout();
return isDereferenceableAndAlignedPointer(
- LI->getPointerOperand(), LI->getType(), LI->getAlign(), DL, CtxI, DT,
- TLI);
+ LI->getPointerOperand(), LI->getType(), LI->getAlign(), DL, CtxI,
+ nullptr, // FIXME
+ DT, TLI);
}
case Instruction::Call: {
auto *CI = dyn_cast<const CallInst>(Inst);