From: Kevin P. Neal Date: Thu, 30 May 2019 17:21:45 +0000 (+0000) Subject: Correct error in revert of r362112. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f9af6ab6a353c4735e9059f6a7dda75216f1ae8;p=llvm Correct error in revert of r362112. Differential Revision: http://reviews.llvm.org/D62546 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362118 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp index 95aace3dc9a..aefc2aabf64 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp @@ -2968,7 +2968,7 @@ SDValue DAGTypeLegalizer::WidenVecRes_StrictFP(SDNode *N) { // No legal vector version so unroll the vector operation and then widen. if (NumElts == 1) - return UnrollVectorOp(N, WidenVT.getVectorNumElements()); + return DAG.UnrollVectorOp(N, WidenVT.getVectorNumElements()); // Since the operation can trap, apply operation on the original vector. EVT MaxVT = VT;