[DAG] SelectionDAG::isSplatValue - early out if binop is not splat. NFCI.
Just return false if we fail to match splats - the remainder of the code is for (fixed)vector operations - shuffles/insertions etc.
GitOrigin-RevId: 37a4621fb6ffc121ec78936a8243219ff53be760
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 71964b3..d244555 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -2472,7 +2472,7 @@
return true;
case ISD::ADD:
case ISD::SUB:
- case ISD::AND:
+ case ISD::AND:
case ISD::XOR:
case ISD::OR: {
APInt UndefLHS, UndefRHS;
@@ -2483,7 +2483,7 @@
UndefElts = UndefLHS | UndefRHS;
return true;
}
- break;
+ return false;
}
case ISD::ABS:
case ISD::TRUNCATE: