[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.
This commit is contained in:
Simon Pilgrim 2021-04-16 17:26:32 +01:00
parent af2a93fd6e
commit 37a4621fb6
1 changed files with 2 additions and 2 deletions

View File

@ -2483,7 +2483,7 @@ bool SelectionDAG::isSplatValue(SDValue V, const APInt &DemandedElts,
UndefElts = UndefLHS | UndefRHS;
return true;
}
break;
return false;
}
case ISD::ABS:
case ISD::TRUNCATE: