[PATCH] D43761: [IPSCCP] Add getCompare which returns either true, false, undef or null.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 06:17:20 PST 2018


fhahn created this revision.
fhahn added reviewers: davide, mssimpso, dberlin.

getCompare returns true, false or undef constants if the comparison can
be evaluated, or nullptr if it cannot. This is in line with what
ConstantExpr::getCompare returns. It also allows us to use
ConstantExpr::getCompare for comparing constants.


https://reviews.llvm.org/D43761

Files:
  include/llvm/Analysis/ValueLattice.h
  lib/Transforms/Scalar/SCCP.cpp
  test/Transforms/SCCP/ip-constant-ranges.ll
  unittests/Analysis/ValueLatticeTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43761.135890.patch
Type: text/x-patch
Size: 11742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180226/9ad2e2a8/attachment.bin>


More information about the llvm-commits mailing list