[llvm] [NVPTX] Fix lowering of i1 SETCC (PR #115035)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 09:21:50 PST 2024
================
@@ -18753,7 +18753,9 @@ SDValue DAGCombiner::rebuildSetCC(SDValue N) {
EVT SetCCVT = N.getValueType();
if (LegalTypes)
SetCCVT = getSetCCResultType(SetCCVT);
- // Replace the uses of XOR with SETCC
+ // Replace the uses of XOR with SETCC. Note, avoid this transformation if
+ // it would introduce illegal operations post-legalization as this can
+ // result in an infinite loop.
----------------
Artem-B wrote:
OK. We can tweak it later if necessary.
https://github.com/llvm/llvm-project/pull/115035
More information about the llvm-commits
mailing list