forked from OSchip/llvm-project
[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:
parent
af2a93fd6e
commit
37a4621fb6
|
@ -2472,7 +2472,7 @@ bool SelectionDAG::isSplatValue(SDValue V, const APInt &DemandedElts,
|
|||
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 @@ bool SelectionDAG::isSplatValue(SDValue V, const APInt &DemandedElts,
|
|||
UndefElts = UndefLHS | UndefRHS;
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
return false;
|
||||
}
|
||||
case ISD::ABS:
|
||||
case ISD::TRUNCATE:
|
||||
|
|
Loading…
Reference in New Issue