aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/InstructionSimplify.cpp
diff options
context:
space:
mode:
authorDaniil Suchkov <suc-daniil@yandex.ru>2020-03-05 16:24:53 +0700
committerDaniil Suchkov <suc-daniil@yandex.ru>2020-03-05 16:32:36 +0700
commit3db48f93248f005c8514a0050ef57f18a05bc489 (patch)
treedc79e95239d9dec5c9675a0d234639d1b9129fc1 /llvm/lib/Analysis/InstructionSimplify.cpp
parent5abfe646f5e194bb2330b80c7f0e23fba00e30fe (diff)
downloadllvm-3db48f93248f005c8514a0050ef57f18a05bc489.zip
llvm-3db48f93248f005c8514a0050ef57f18a05bc489.tar.gz
llvm-3db48f93248f005c8514a0050ef57f18a05bc489.tar.bz2
Revert "[ValueTracking] Let isGuaranteedNotToBeUndefOrPoison look into branch conditions of dominating blocks' terminators"
That commit causes SIGSEGV on some simple tests. This reverts commit 952ad4701cf0d8da79789f6b83ddaa386c60d535.
Diffstat (limited to 'llvm/lib/Analysis/InstructionSimplify.cpp')
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index 45fd623..9fa78f3 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -5360,17 +5360,16 @@ Value *llvm::SimplifyCall(CallBase *Call, const SimplifyQuery &Q) {
}
/// Given operands for a Freeze, see if we can fold the result.
-static Value *SimplifyFreezeInst(Value *Op0, const SimplifyQuery &Q) {
+static Value *SimplifyFreezeInst(Value *Op0) {
// Use a utility function defined in ValueTracking.
- if (llvm::isGuaranteedNotToBeUndefOrPoison(Op0, Q.CxtI, Q.DT))
+ if (llvm::isGuaranteedNotToBeUndefOrPoison(Op0))
return Op0;
-
// We have room for improvement.
return nullptr;
}
Value *llvm::SimplifyFreezeInst(Value *Op0, const SimplifyQuery &Q) {
- return ::SimplifyFreezeInst(Op0, Q);
+ return ::SimplifyFreezeInst(Op0);
}
/// See if we can compute a simplified version of this instruction.