forked from OSchip/llvm-project
[SelectionDAG] Don't promote the condition operand of VSELECT when promoting the result.
The condition operand should be promoted during operand promotion. llvm-svn: 319853
This commit is contained in:
parent
dfd90802af
commit
0328d0083e
|
@ -573,8 +573,6 @@ SDValue DAGTypeLegalizer::PromoteIntRes_VSELECT(SDNode *N) {
|
|||
|
||||
SDValue LHS = GetPromotedInteger(N->getOperand(1));
|
||||
SDValue RHS = GetPromotedInteger(N->getOperand(2));
|
||||
// Promote all the way up to the canonical SetCC type.
|
||||
Mask = PromoteTargetBoolean(Mask, LHS.getValueType());
|
||||
return DAG.getNode(ISD::VSELECT, SDLoc(N),
|
||||
LHS.getValueType(), Mask, LHS, RHS);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue