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)
commit9d86a4a3b636abc9871108d0ffecb990b824f3dd
tree15a1285cc55302d7520f80ca955f316c90d82c51
parent830875bbda6b4b3f1e07072904677ce1bc93af3f
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

llvm-svn: 173093
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/mul.ll
llvm/test/Transforms/InstCombine/sext.ll
llvm/test/Transforms/InstCombine/zext-bool-add-sub.ll