Transform (sub 0, (zext bool to A)) to (sext bool to A) and
authorPaul Redmond <paul.redmond@intel.com>
Mon, 21 Jan 2013 21:57:20 +0000 (21:57 +0000)
committerPaul Redmond <paul.redmond@intel.com>
Mon, 21 Jan 2013 21:57:20 +0000 (21:57 +0000)
commit8e528100d210e225cee417229d94af91355118c0
treefb79d27bfbcb7feb41de5ed4d92fff0c40a04226
parente4b1efef8aa51c7ac768f96e77af49622d9e85b9
Transform (sub 0, (zext bool to A)) to (sext bool to A) and
(sub 0, (sext bool to A)) to (zext bool to A).

Patch by Muhammad Ahmad
Reviewed by Duncan Sands

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173093 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/mul.ll
test/Transforms/InstCombine/sext.ll
test/Transforms/InstCombine/zext-bool-add-sub.ll