Added instruction combine to transform few more negative values addition to subtracti...
authorDinesh Dwivedi <dinesh.d@samsung.com>
Thu, 26 Jun 2014 05:40:22 +0000 (05:40 +0000)
committerDinesh Dwivedi <dinesh.d@samsung.com>
Thu, 26 Jun 2014 05:40:22 +0000 (05:40 +0000)
commita71617358107489c633c1207fefbb1ed0e514333
tree13719e68356bb7c101ff6a9216f2e0e9466ed775
parent7e0daca11003e601770dc6cf2a82e3192e773915
Added instruction combine to transform few more negative values addition to subtraction (Part 2)
This patch enables transforms for

(x + (~(y | c) + 1)   -->   x - (y | c) if c is even

Differential Revision: http://reviews.llvm.org/D4209

llvm-svn: 211765
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/add2.ll