[llvm] [DAGCombiner] Fix scalarizeExtractedBinOp for some SETCC cases (PR #123071)

David Green via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 01:07:24 PST 2025


================
@@ -22808,9 +22808,26 @@ static SDValue scalarizeExtractedBinOp(SDNode *ExtElt, SelectionDAG &DAG,
     return SDValue();
 
   EVT ResVT = ExtElt->getValueType(0);
-  if (Opc == ISD::SETCC &&
-      (ResVT != Vec.getValueType().getVectorElementType() || LegalTypes))
-    return SDValue();
+  bool SetCCNeedsSignExt = false;
----------------
davemgreen wrote:

Move this below shouldScalarizeBinop()?

https://github.com/llvm/llvm-project/pull/123071


More information about the llvm-commits mailing list