Use SmallVectorImpl instead of SmallVector as method argument to avoid specifying...
authorCraig Topper <craig.topper@gmail.com>
Wed, 3 Jul 2013 05:16:59 +0000 (05:16 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 3 Jul 2013 05:16:59 +0000 (05:16 +0000)
llvm-svn: 185513

llvm/lib/CodeGen/CriticalAntiDepBreaker.cpp
llvm/lib/CodeGen/CriticalAntiDepBreaker.h

index 7a7d435..18c8e0a 100644 (file)
@@ -361,7 +361,7 @@ findSuitableFreeRegister(RegRefIter RegRefBegin,
                          unsigned AntiDepReg,
                          unsigned LastNewReg,
                          const TargetRegisterClass *RC,
-                         SmallVector<unsigned, 2> &Forbid)
+                         SmallVectorImpl<unsigned> &Forbid)
 {
   ArrayRef<MCPhysReg> Order = RegClassInfo.getOrder(RC);
   for (unsigned i = 0; i != Order.size(); ++i) {
index df13dd3..565d20b 100644 (file)
@@ -103,7 +103,7 @@ class TargetRegisterInfo;
                                       unsigned AntiDepReg,
                                       unsigned LastNewReg,
                                       const TargetRegisterClass *RC,
-                                      SmallVector<unsigned, 2> &Forbid);
+                                      SmallVectorImpl<unsigned> &Forbid);
   };
 }