[PATCH] D149528: [TargetLowering] Stop passing an ISD::CondCode to isOperationLegalOrCustom.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 29 15:25:01 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG344368fb9819: [TargetLowering] Stop passing an ISD::CondCode to isOperationLegalOrCustom. (authored by craig.topper).

Changed prior to commit:
  https://reviews.llvm.org/D149528?vs=518229&id=518254#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149528/new/

https://reviews.llvm.org/D149528

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp


Index: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -6703,9 +6703,9 @@
   // NOTE: we avoid letting illegal types through even if we're before legalize
   // ops – legalization has a hard time producing good code for the code that
   // follows.
-  if (!isOperationLegalOrCustom(ISD::SETEQ, VT) ||
+  if (!isOperationLegalOrCustom(ISD::SETCC, SETCCVT) ||
       !isOperationLegalOrCustom(ISD::AND, VT) ||
-      !isOperationLegalOrCustom(Cond, VT) ||
+      !isCondCodeLegalOrCustom(Cond, VT.getSimpleVT()) ||
       !isOperationLegalOrCustom(ISD::VSELECT, SETCCVT))
     return SDValue();
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149528.518254.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230429/7dbbe5b9/attachment.bin>


More information about the llvm-commits mailing list