Fix a compile-time regression introduced by my heuristic-changing patch. I forgot
[oota-llvm.git] / lib / CodeGen / SimpleRegisterCoalescing.h
index de16fa15356a8e89fd4cb6b4b3a4272d56326f69..bb21515a3546e1406ed39964138e8ee689d682e7 100644 (file)
@@ -126,7 +126,8 @@ namespace llvm {
     unsigned getRepIntervalSize(unsigned Reg) {
       if (!li_->hasInterval(Reg))
         return 0;
-      return li_->getApproximateInstructionCount(li_->getInterval(Reg));
+      return li_->getApproximateInstructionCount(li_->getInterval(Reg)) *
+             LiveIntervals::InstrSlots::NUM;
     }
 
     /// print - Implement the dump method.