summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Hello
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-07-21 05:26:05 +0000
committerCraig Topper <craig.topper@intel.com>2019-07-21 05:26:05 +0000
commit8fabdfe9fcd2927a0a7cbdf3a15c7cf9b7a52019 (patch)
tree11bb3236c4eedc2ec71aff8ecfb97aa18ea81259 /llvm/lib/Transforms/Hello
parentb4e06328fc260881ba6069ff3012f82aefe9765b (diff)
downloadbcm5719-llvm-8fabdfe9fcd2927a0a7cbdf3a15c7cf9b7a52019.tar.gz
bcm5719-llvm-8fabdfe9fcd2927a0a7cbdf3a15c7cf9b7a52019.zip
[InstCombine] Don't use AddOne/SubOne to see if two APInts are 1 apart. Use APInt operations instead. NFCI
AddOne/SubOne create new Constant objects. That seems heavy for comparing ConstantInts which wrap APInts. Just do the math on on the APInts and compare them. llvm-svn: 366648
Diffstat (limited to 'llvm/lib/Transforms/Hello')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud