If the SETCC fp-condcode is supported on SSE as a single CMPPS/PD op then we can use convertIntLogicToFPLogic to reduce EFLAGS and XMM->GPR traffic like we do for AVX targets.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
46823–46825 | What will we do if they are swapped? I don't see we use it else where. | |
46829–46830 | Move the comments on line 46820 here? |
llvm/lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
46826 | Make that a single "Unused" bool variable for readability? Or see next comment for an alternate change. | |
46829 | Instead of an ambiguous "8", can we spell this out to make the limitation clear? IIUC, this is what we want to avoid: if (CC0 == ISD::SETONE || CC1 == ISD::SETONE || CC0 == ISD::SETUEQ || CC1 == ISD::SETUEQ) I see one other place in this file that uses this condition: // In the two cases not handled by SSE compare predicates (SETUEQ/SETONE), // emit two comparisons and a logic op to tie them together. So we could create a small helper function to make both of these cases more obvious. |
What will we do if they are swapped? I don't see we use it else where.