commit | edf556ec1f7247d813cbe9f47d4626b5a284a20e | [log] [tgz] |
---|---|---|
author | Robert Khasanov <rob.khasanov@gmail.com> | Tue Oct 28 15:59:40 2014 +0000 |
committer | Robert Khasanov <rob.khasanov@gmail.com> | Tue Oct 28 15:59:40 2014 +0000 |
tree | 69118108b8c59bd47dcd3c01374f2f1bfa81a919 | |
parent | 7435fa333d1b646690021bfaa9350355017d0bdf [diff] |
[x86] Simplify vector selection if condition value type matches vselect value type and true value is all ones or false value is all zeros. This transformation worked if selector is produced by SETCC, however SETCC is needed only if we consider to swap operands. So I replaced SETCC check for this case. Added tests for vselect of <X x i1> values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220777 91177308-0d34-0410-b5e6-96231b3b80d8