commit | ccba49dfc2168945892ab1f62233e679068c1609 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Mon Aug 28 22:00:27 2017 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Mon Aug 28 22:00:27 2017 +0000 |
tree | 502eede4ded16963ddc0fe0a15e64f31dca94773 | |
parent | f2e5589b0fc7b88a0301db806061ff3aef11f8a6 [diff] |
[InstCombine] Teach select01 helper of foldSelectIntoOp to handle vector splats We were handling some vectors in foldSelectIntoOp, but not if the operand of the bin op was any kind of vector constant. This patch fixes it to treat vector splats the same as scalars. Differential Revision: https://reviews.llvm.org/D37232 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311940 91177308-0d34-0410-b5e6-96231b3b80d8