[llvm] [NVPTX] Fix lowering of i1 SETCC (PR #115035)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 12:21:30 PST 2024
================
@@ -11874,6 +11874,47 @@ bool TargetLowering::LegalizeSetCCCondCode(SelectionDAG &DAG, EVT VT,
return true;
}
+ // Special case: expand i1 comparisons using logical operations.
+ if (OpVT == MVT::i1) {
----------------
arsenm wrote:
Why does this need the type special case? LegalizeSetCCCondCode should do as asked regardless of the type
https://github.com/llvm/llvm-project/pull/115035
More information about the llvm-commits
mailing list