]> granicus.if.org Git - llvm/commit
[InstCombine] allow zext(bool) + C --> select bool, C+1, C for vector types
authorSanjay Patel <spatel@rotateright.com>
Fri, 13 Oct 2017 16:29:38 +0000 (16:29 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 13 Oct 2017 16:29:38 +0000 (16:29 +0000)
commitb22d64b7ed33e20b1897cd56f3b836baad63b72a
tree6f415ad2441c71ac1dc3c6912fe8fbbd60d1ca9f
parent13fcba8aab94d6fa1e2641544a81173ef0372742
[InstCombine] allow zext(bool) + C --> select bool, C+1, C for vector types

The backend should be prepared for this transform after:
https://reviews.llvm.org/rL311731

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