aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-09-19 16:51:42 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2022-09-19 19:25:22 -0400
commitce44357216ecb764b9613535abb72167a53f6faa (patch)
tree43ebd61c57328dbd00c06edac409e3ce33abfe97 /llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
parent684f766431f3accd1dddc214df270cbdfb877824 (diff)
downloadllvm-ce44357216ecb764b9613535abb72167a53f6faa.zip
llvm-ce44357216ecb764b9613535abb72167a53f6faa.tar.gz
llvm-ce44357216ecb764b9613535abb72167a53f6faa.tar.bz2
Analysis: Add AssumptionCache to isSafeToSpeculativelyExecute
Does not update any of the uses.
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
index 3497654..f20c168 100644
--- a/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
@@ -462,7 +462,7 @@ static bool isHoistableInstructionType(Instruction *I) {
static bool isHoistable(Instruction *I, DominatorTree &DT) {
if (!isHoistableInstructionType(I))
return false;
- return isSafeToSpeculativelyExecute(I, nullptr, &DT);
+ return isSafeToSpeculativelyExecute(I, nullptr, nullptr, &DT);
}
// Recursively traverse the use-def chains of the given value and return a set