diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-03-13 01:17:40 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-03-13 01:17:40 +0000 |
| commit | 80058e30cc3abb7240eaa4541aab5ae55af94935 (patch) | |
| tree | 251285b38adeba05c71bf7a69c8738856404464d /llvm/lib | |
| parent | 512aae25296a9dbeb7447ba645ad96921a7bb332 (diff) | |
| download | bcm5719-llvm-80058e30cc3abb7240eaa4541aab5ae55af94935.tar.gz bcm5719-llvm-80058e30cc3abb7240eaa4541aab5ae55af94935.zip | |
[LegalizeTypes] In SplitVecOp_TruncateHelper, use GetSplitVector on the input instead of creating new extract_subvectors.
llvm-svn: 327355
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index 6e4e21fc433..b15dcbf1a78 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -2108,9 +2108,9 @@ SDValue DAGTypeLegalizer::SplitVecOp_TruncateHelper(SDNode *N) { return SplitVecOp_UnaryOp(N); SDLoc DL(N); - // Extract the halves of the input via extract_subvector. + // Get the split input vector. SDValue InLoVec, InHiVec; - std::tie(InLoVec, InHiVec) = DAG.SplitVector(InVec, DL); + GetSplitVector(InVec, InLoVec, InHiVec); // Truncate them to 1/2 the element size. EVT HalfElementVT = IsFloat ? EVT::getFloatingPointVT(InElementSize/2) : |

