aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2020-04-16 22:14:21 -0400
committerJames Y Knight <jyknight@google.com>2020-04-23 19:36:44 -0400
commit248a5db3f2e5ff8e4c37b9578bfda8c4d97eaedc (patch)
tree66c66fabf93aefdf03e16f367bfefd33d71aadcf /llvm/lib/Analysis/ValueTracking.cpp
parent48e9ef4320a315ba1f2358db7295d53917a14f4b (diff)
downloadllvm-248a5db3f2e5ff8e4c37b9578bfda8c4d97eaedc.zip
llvm-248a5db3f2e5ff8e4c37b9578bfda8c4d97eaedc.tar.gz
llvm-248a5db3f2e5ff8e4c37b9578bfda8c4d97eaedc.tar.bz2
Change callbr to only define its output SSA variable on the normal
path, not the indirect targets. Fixes: PR45565. Differential Revision: https://reviews.llvm.org/D78341
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index b31a11a..ddce360 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -4641,7 +4641,7 @@ bool llvm::canCreatePoison(const Instruction *I) {
case Instruction::CallBr:
case Instruction::Invoke:
// Function calls can return a poison value even if args are non-poison
- // values. CallBr returns poison when jumping to indirect labels.
+ // values.
return true;
case Instruction::InsertElement:
case Instruction::ExtractElement: {