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)
commitadc07739a9b141e8cb29c7c6b85470b02bfe5e4b
tree6cf4e8ad1187c5aec7d2037002fe9b09d67078c3
parent93bf97c14616b68419a3a232281e99e966c8c9b0
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

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