summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-05-03 23:12:29 +0000
committerCraig Topper <craig.topper@gmail.com>2017-05-03 23:12:29 +0000
commit8189a87a1ed98a4f3fc3966e52ebad984f18f262 (patch)
tree3efca7e7607b0f58d48f1d185d0127bb1774477d /llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
parentb201a20eabd5292b2b4a2b0948eb26330d5da65b (diff)
downloadbcm5719-llvm-8189a87a1ed98a4f3fc3966e52ebad984f18f262.tar.gz
bcm5719-llvm-8189a87a1ed98a4f3fc3966e52ebad984f18f262.zip
[KnownBits] Add methods for determining if KnownBits is a constant value
This patch adds isConstant and getConstant for determining if KnownBits represents a constant value and to retrieve the value. Use them to simplify code. Differential Revision: https://reviews.llvm.org/D32785 llvm-svn: 302091
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud