[InstCombine] 'add (sub C1, X), C2 --> sub (add C1, C2), X' constant-fold
authorRoman Lebedev <lebedev.ri@gmail.com>
Fri, 31 May 2019 09:47:04 +0000 (09:47 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 31 May 2019 09:47:04 +0000 (09:47 +0000)
commit886c4ef35aacefd33dab1d1b674a872d08036f00
tree22c66d4acda6ff6bb73fe01b4205095d5d038258
parent0fc3a0739850fd84ec910046b90514d0c97f2420
[InstCombine] 'add (sub C1, X), C2 --> sub (add C1, C2), X' constant-fold

https://rise4fun.com/Alive/qJQ

llvm-svn: 362216
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/addsub-constant-folding.ll