[llvm] [NVPTX] Fix lowering of i1 SETCC (PR #115035)
Justin Fargnoli via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 13:14:29 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);
----------------
justinfargnoli wrote:
If it doesn't work out of the box, should we instead expand the implementation of [`TLI.LegalizeSetCCCondCode()`](https://github.com/llvm/llvm-project/blob/dd1c99bac4dc1d5ceeadc79dd31fa12f3e615f18/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp#L11853-L11983)?
https://github.com/llvm/llvm-project/pull/115035
More information about the llvm-commits
mailing list