[all-commits] [llvm/llvm-project] 29f862: [Constant] Add containsPoisonElement
Juneyoung Lee via All-commits
all-commits at lists.llvm.org
Tue Jan 5 19:16:24 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 29f8628d1fc8d96670e13562c4d92fc916bd0ce1
https://github.com/llvm/llvm-project/commit/29f8628d1fc8d96670e13562c4d92fc916bd0ce1
Author: Juneyoung Lee <aqjune at gmail.com>
Date: 2021-01-06 (Wed, 06 Jan 2021)
Changed paths:
M llvm/include/llvm/IR/Constant.h
M llvm/lib/Analysis/ValueTracking.cpp
M llvm/lib/IR/ConstantFold.cpp
M llvm/lib/IR/Constants.cpp
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
M llvm/unittests/Analysis/ValueTrackingTest.cpp
M llvm/unittests/IR/ConstantsTest.cpp
Log Message:
-----------
[Constant] Add containsPoisonElement
This patch
- Adds containsPoisonElement that checks existence of poison in constant vector elements,
- Renames containsUndefElement to containsUndefOrPoisonElement to clarify its behavior & updates its uses properly
With this patch, isGuaranteedNotToBeUndefOrPoison's tests w.r.t constant vectors are added because its analysis is improved.
Thanks!
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D94053
More information about the All-commits
mailing list