[PATCH] D74065: [ValueTracking] Update implied reasoning to accept expanded cmp (NFC).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 5 09:09:24 PST 2020


fhahn created this revision.
fhahn added reviewers: nikic, RKSimon, lebedev.ri, spatel.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

This patch adds versions of isImpliedCondition and
isImpliedByDomCondition that take a predicate, LHS and RHS operands as
instead of a Value representing the condition.

This allows using those functions to check conditions without having a
concrete ICmp instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74065

Files:
  llvm/include/llvm/Analysis/ValueTracking.h
  llvm/lib/Analysis/ValueTracking.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74065.242648.patch
Type: text/x-patch
Size: 9967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200205/dee9f828/attachment.bin>


More information about the llvm-commits mailing list