]> granicus.if.org Git - llvm/commit
[NFC][InstCombine] Improve test coverage for ((~x) + y) + 1 -> y - x fold fold ...
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 1 Jul 2019 13:31:06 +0000 (13:31 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 1 Jul 2019 13:31:06 +0000 (13:31 +0000)
commite93a6479cb4563f363b2ce35d4dbe033bd006c2e
treeaeac93b47c931bfc79be047d99593bf8c0ca2b33
parent2ab66137f5f1ff9ab3fe8c2ece35574c4d0be359
[NFC][InstCombine] Improve test coverage for  ((~x) + y) + 1 -> y - x fold fold (PR42459)

So we indeed to have this fold, but only if +1 is not the last operation..

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364764 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/fold-inc-of-add-of-not-x-and-y-to-sub-x-from-y.ll