Added instruction combine to transform few more negative values addition to subtracti...
authorDinesh Dwivedi <dinesh.d@samsung.com>
Fri, 27 Jun 2014 07:47:35 +0000 (07:47 +0000)
committerDinesh Dwivedi <dinesh.d@samsung.com>
Fri, 27 Jun 2014 07:47:35 +0000 (07:47 +0000)
commit22e371c74eb6a881f65d677712931297475a69d9
treecc4f974edba0f2c2d8ff5869d5c231bafb717efb
parent4299a8b4bace0920a753e790e642c93b7603051f
Added instruction combine to transform few more negative values addition to subtraction (Part 3)
This patch enables transforms for

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

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

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