[llvm] [NVPTX] Fix lowering of i1 SETCC (PR #115035)
Justin Holewinski via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 05:43:17 PST 2024
================
@@ -668,6 +668,11 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
setTruncStoreAction(VT, MVT::i1, Expand);
}
+ setCondCodeAction({ISD::SETNE, ISD::SETEQ, ISD::SETUGE, ISD::SETULE,
+ ISD::SETUGT, ISD::SETULT, ISD::SETGT, ISD::SETLT,
+ ISD::SETGE, ISD::SETLE},
+ MVT::i1, Custom);
----------------
jholewinski wrote:
If there is nothing PTX-specific about the expansion (which seems to be the case), I would agree that this could be part of the target-independent expansion. Even if NVPTX is the only backend that uses it, it would be good to make it easier for future backends that may have a use for it.
https://github.com/llvm/llvm-project/pull/115035
More information about the llvm-commits
mailing list