[PATCH] D94053: [Constant] Add containsPoisonElement

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 4 17:18:14 PST 2021


aqjune created this revision.
aqjune added reviewers: spatel, nikic, lebedev.ri, fhahn.
Herald added subscribers: dexonsmith, hiraditya.
aqjune requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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!


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94053

Files:
  llvm/include/llvm/IR/Constant.h
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/IR/ConstantFold.cpp
  llvm/lib/IR/Constants.cpp
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
  llvm/unittests/Analysis/ValueTrackingTest.cpp
  llvm/unittests/IR/ConstantsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94053.314484.patch
Type: text/x-patch
Size: 9387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210105/45ab9901/attachment.bin>


More information about the llvm-commits mailing list