[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:
Craig Topper 2017-12-05 23:08:32 +00:00
parent dfd90802af
commit 0328d0083e
1 changed files with 0 additions and 2 deletions

View File

@ -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);
}