[llvm] r215335 - Increase the size of this SmallVector in CloneNodeWithValues.

Hans Wennborg hans at hanshq.net
Sun Aug 10 19:21:20 PDT 2014


Author: hans
Date: Sun Aug 10 21:21:19 2014
New Revision: 215335

URL: http://llvm.org/viewvc/llvm-project?rev=215335&view=rev
Log:
Increase the size of this SmallVector in CloneNodeWithValues.

In a Clang bootstrap, the size of this vector was always 6.

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp?rev=215335&r1=215334&r2=215335&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp Sun Aug 10 21:21:19 2014
@@ -136,7 +136,7 @@ static void CheckForPhysRegDependency(SD
 static void CloneNodeWithValues(SDNode *N, SelectionDAG *DAG,
                                 SmallVectorImpl<EVT> &VTs,
                                 SDValue ExtraOper = SDValue()) {
-  SmallVector<SDValue, 4> Ops;
+  SmallVector<SDValue, 6> Ops;
   for (unsigned I = 0, E = N->getNumOperands(); I != E; ++I)
     Ops.push_back(N->getOperand(I));
 





More information about the llvm-commits mailing list