summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-10-07 07:16:44 +0000
committerCraig Topper <craig.topper@intel.com>2018-10-07 07:16:44 +0000
commite4d199e36000718840d0f003c9060ef63eddb1eb (patch)
tree7a2bb53fb352a51ae45ed38c30dd9923f8daed3c /llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
parent72f6e29980ab32c9519096e9688f2a543a99f639 (diff)
downloadbcm5719-llvm-e4d199e36000718840d0f003c9060ef63eddb1eb.tar.gz
bcm5719-llvm-e4d199e36000718840d0f003c9060ef63eddb1eb.zip
[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
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
index 17618d71305..f76f3340535 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
@@ -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) {
OpenPOWER on IntegriCloud