summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/addsub-constant-folding.ll
Commit message (Collapse)AuthorAgeFilesLines
* [InstCombine] 'C-(C2-X) --> X+(C-C2)' constant-foldRoman Lebedev2019-05-311-2/+2
| | | | | | | | | | It looks this fold was already partially happening, indirectly via some other folds, but with one-use limitation. No other fold here has that restriction. https://rise4fun.com/Alive/ftR llvm-svn: 362217
* [InstCombine] 'add (sub C1, X), C2 --> sub (add C1, C2), X' constant-foldRoman Lebedev2019-05-311-18/+10
| | | | | | https://rise4fun.com/Alive/qJQ llvm-svn: 362216
* [NFC][InstCombine] Copy add/sub constant-folding tests from codegenRoman Lebedev2019-05-311-0/+536
Last three patterns are missed. llvm-svn: 362209
OpenPOWER on IntegriCloud