[llvm] r362118 - Correct error in revert of r362112.

Kevin P. Neal via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 10:21:45 PDT 2019


Author: kpn
Date: Thu May 30 10:21:45 2019
New Revision: 362118

URL: http://llvm.org/viewvc/llvm-project?rev=362118&view=rev
Log:
Correct error in revert of r362112.

Differential Revision:	http://reviews.llvm.org/D62546

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp?rev=362118&r1=362117&r2=362118&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp Thu May 30 10:21:45 2019
@@ -2968,7 +2968,7 @@ SDValue DAGTypeLegalizer::WidenVecRes_St
 
   // 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;




More information about the llvm-commits mailing list