OSDN Git Service

[InstCombine] Unfold masked merge with constant mask
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 30 Apr 2018 17:59:33 +0000 (17:59 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 30 Apr 2018 17:59:33 +0000 (17:59 +0000)
commitfa71b55bb995199d3efe2c29f96bdb9cfeff7d81
tree05dcf8e1f0baf31f6d5b4efb5adba189d00d0fc2
parent7a3b1c9910a440c280e1e82db3f87b6abbc87c4e
[InstCombine] Unfold masked merge with constant mask

Summary:
As discussed in D45733, we want to do this in InstCombine.

https://rise4fun.com/Alive/LGk

Reviewers: spatel, craig.topper

Reviewed By: spatel

Subscribers: chandlerc, xbolva00, llvm-commits

Differential Revision: https://reviews.llvm.org/D45867

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331205 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/unfold-masked-merge-with-const-mask-scalar.ll
test/Transforms/InstCombine/unfold-masked-merge-with-const-mask-vector.ll