[PATCH] D78152: [ValueTracking] Implement impliesPoison
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 14:05:14 PDT 2020
aqjune created this revision.
aqjune added reviewers: spatel, nikic, lebedev.ri.
aqjune added a project: LLVM.
This PR adds impliesPoison(ValAssumedPoison, V) that returns true if V is
poison under the assumption that ValAssumedPoison is poison.
impliesPoison can be used for sound optimization of select, as discussed in
D77868 <https://reviews.llvm.org/D77868>.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78152
Files:
llvm/include/llvm/Analysis/ValueTracking.h
llvm/lib/Analysis/ValueTracking.cpp
llvm/unittests/Analysis/ValueTrackingTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78152.257484.patch
Type: text/x-patch
Size: 5814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200414/319f11cc/attachment.bin>
More information about the llvm-commits
mailing list