This is an archive of the discontinued LLVM Phabricator instance.

[X86][SSE] VSELECT(XOR(Cond,-1), LHS, RHS) --> VSELECT(Cond, RHS, LHS)
ClosedPublic

Authored by RKSimon on Mar 5 2019, 8:25 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Mar 5 2019, 8:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2019, 8:25 AM
spatel added a comment.Mar 5 2019, 8:37 AM

Do we have this as a generic DAGCombine? Or is the 'not' formed late and we have a BLENDV node rather than select/vselect?

Do we have this as a generic DAGCombine? Or is the 'not' formed late and we have a BLENDV node rather than select/vselect?

The generic combine only works for i1/vXi1 condition variables.

This revision is now accepted and ready to land.Mar 5 2019, 10:12 AM
This revision was automatically updated to reflect the committed changes.