commit | 6dbd34d261f9a2c3b98de3bbd0c362e593810706 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Thu Jul 06 18:39:47 2017 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Thu Jul 06 18:39:47 2017 +0000 |
tree | c9a28b041996e8f6ff09ab09bf050fc9f15e1cc1 | |
parent | 9a2b6151ed9ce910f4f7ac77ecf2593b75443b28 [diff] |
[Constants] If we already have a ConstantInt*, prefer to use isZero/isOne/isMinusOne instead of isNullValue/isOneValue/isAllOnesValue inherited from Constant. NFCI Going through the Constant methods requires redetermining that the Constant is a ConstantInt and then calling isZero/isOne/isMinusOne. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307292 91177308-0d34-0410-b5e6-96231b3b80d8