commit | 64c8cdfd4f81b261240203f491618cf66575bc2d | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@gmail.com> | Wed May 03 23:12:29 2017 +0000 |
committer | Craig Topper <craig.topper@gmail.com> | Wed May 03 23:12:29 2017 +0000 |
tree | 0b22cb7b73bdc93fcd335e5473a9c03e78771e8e | |
parent | f99051638769b3c02a1fadfb986504295590dc6c [diff] |
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302091 91177308-0d34-0410-b5e6-96231b3b80d8