[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.
New tests are not added, existed intrinsics tests on vpcmpeq{bwdq} cover these cases.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Added a test case for VSELECT simplification.
Removed changes corresponding to intrinsics lowering, it will go as separate patch.