forked from OSchip/llvm-project
[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:
parent
72f6e29980
commit
e4d199e360
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue