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)
commit0bf7c06b639902b378702eed907821f0235a337a
tree5e65b9213b7115c94284b802c614a204d078cb6b
parent29640bcb7d7738e7e611b0150b6ac57e2d2b723f
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211765 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/add2.ll