summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-04-13 17:36:24 +0000
committerSanjay Patel <spatel@rotateright.com>2017-04-13 17:36:24 +0000
commit9745d24a6658f01cbe296192cefb5a0b729cbf0d (patch)
treed2320198e5aca4d8d4eec605c6f56102751f6d4a /llvm/test/CodeGen
parentbdb8b58d160da0320d7ab0a751711842d3313a38 (diff)
downloadbcm5719-llvm-9745d24a6658f01cbe296192cefb5a0b729cbf0d.tar.gz
bcm5719-llvm-9745d24a6658f01cbe296192cefb5a0b729cbf0d.zip
[InstCombine] use similar ops for related folds; NFCI
It's less efficient to produce 'ule' than 'ult' since we know we're going to canonicalize to 'ult', but we shouldn't have duplicated code for these folds. As a trade-off, this was a pretty terrible way to make a '2'. :) if (LHSC == SubOne(RHSC)) AddC = ConstantExpr::getSub(AddOne(RHSC), LHSC); The next steps are to share the code to fix PR32524 and add the missing 'and' fold that was left out when PR14708 was fixed: https://bugs.llvm.org/show_bug.cgi?id=14708 llvm-svn: 300222
Diffstat (limited to 'llvm/test/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud