aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorJuneyoung Lee <aqjune@gmail.com>2021-05-02 13:00:33 +0900
committerJuneyoung Lee <aqjune@gmail.com>2021-05-02 13:04:37 +0900
commit7257e6a68a722a7ce647e6510ac3d930fc65b7de (patch)
tree07e191119ea11c89b54c97513a83a5db5a55113c /llvm/lib/Analysis/ValueTracking.cpp
parent0c1ff26bd3df2e8732b5728b663efd7ec6f31a02 (diff)
downloadllvm-7257e6a68a722a7ce647e6510ac3d930fc65b7de.zip
llvm-7257e6a68a722a7ce647e6510ac3d930fc65b7de.tar.gz
llvm-7257e6a68a722a7ce647e6510ac3d930fc65b7de.tar.bz2
[ValueTracking] ctpop propagates poison
This is a patch that adds ctpop intrinsics to propagatesPoison. Splitted from D101191
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index e5b0345..f8daf6a 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -5277,6 +5277,8 @@ bool llvm::propagatesPoison(const Operator *I) {
// two output vectors (calculated results, overflow bits)'
// corresponding lanes are poison.
return true;
+ case Intrinsic::ctpop:
+ return true;
}
}
return false;