[PATCH] D88207: [ValueTracking] Check uses of Argument if it is given to isGuaranteedNotToBeUndefOrPoison
Juneyoung Lee via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 02:56:15 PDT 2020
aqjune created this revision.
aqjune added reviewers: lebedev.ri, spatel, nikic.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
aqjune requested review of this revision.
This is a simple patch that allows isGuaranteedNotToBeUndefOrPoison to return more precise result
when an argument is given, by looking through its uses at the entry block (and following blocks as well, if it is checking poison only).
This is useful when there is a function call with noundef arguments at the entry block.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D88207
Files:
llvm/lib/Analysis/ValueTracking.cpp
llvm/unittests/Analysis/ValueTrackingTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88207.293987.patch
Type: text/x-patch
Size: 4582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200924/61c1d634/attachment.bin>
More information about the llvm-commits
mailing list