[PATCH] D84007: [ValueTracking] Change canCreatePoison to take Operator, add canCreateUndef

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 01:51:14 PDT 2020


aqjune created this revision.
aqjune added reviewers: nikic, spatel, lebedev.ri, jdoerfert.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

This patch

- refactors `canCreatePoison` so it can deal with constantexprs
- add a function `canCreateUndef`.

`canCreateUndef` will be used at D83926 <https://reviews.llvm.org/D83926>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84007

Files:
  llvm/include/llvm/Analysis/ValueTracking.h
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/Transforms/Instrumentation/PoisonChecking.cpp
  llvm/unittests/Analysis/ValueTrackingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84007.278679.patch
Type: text/x-patch
Size: 13315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200717/5136de2b/attachment.bin>


More information about the llvm-commits mailing list