[LegalizeVectorOps] Make ExpandStrictFPOp return the result corresponding to the result number of the SDValue passed in.

It was always returning the chain which seems to be the result number of the SDValue in the lit tests we have. But I don't know if that's guaranteed.

llvm-svn: 343933
This commit is contained in:
Craig Topper 2018-10-07 07:16:44 +00:00
parent 72f6e29980
commit e4d199e360
1 changed files with 1 additions and 1 deletions

View File

@ -1177,7 +1177,7 @@ SDValue VectorLegalizer::ExpandStrictFPOp(SDValue Op) {
AddLegalizedOperand(Op.getValue(0), Result);
AddLegalizedOperand(Op.getValue(1), NewChain);
return NewChain;
return Op.getResNo() ? NewChain : Result;
}
SDValue VectorLegalizer::UnrollVSETCC(SDValue Op) {