This allows GlobalISel to use this instruction where available. I assume
SelectionDAG always selects s_xnor_b32 so it isn't affected by this
change.
Details
Details
- Reviewers
arsenm - Commits
- rGdc2259537a30: [AMDGPU] Add selection pattern for v_xnor_b32
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Is it worth disabling the pattern for SelectionDAG? Or maybe restricting it to divergent cases, so we can select v_xnor directly in that case without having to move it to VALU in SIFixSGPRCopies?
Comment Actions
Not really. We don't have a mechanism for disabling patterns per selector. The current patterns are already a hodge-podge of cases that happen to work in one selector or the other, and I don't think it's worth putting effort into making selectiondag nicer