OSDN Git Service

[InstCombine] improve sub with bool folds
authorSanjay Patel <spatel@rotateright.com>
Sun, 3 Jun 2018 16:35:26 +0000 (16:35 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 3 Jun 2018 16:35:26 +0000 (16:35 +0000)
commit9a5dadc5b18ed140bbe80de99775b381adca299b
treea1879d4ec6522090d1afa4466e69e4311b6d8762
parentd640970907a9257cb19dab064210249c98476f03
[InstCombine] improve sub with bool folds

There's a patchwork of existing transforms trying to handle
these cases, but as seen in the changed test, we weren't
catching them all.

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