LiveInterval: A LiveRange is enough for ConnectedVNInfoEqClasses::Classify()
[oota-llvm.git] / lib / CodeGen / LiveIntervalAnalysis.cpp
index 9451d92bd7ae3e1036e9a634eb4318ec958131c6..a506e0571c09242c6e8d8969f921e26d558604a4 100644 (file)
@@ -1446,7 +1446,7 @@ void LiveIntervals::removeVRegDefAt(LiveInterval &LI, SlotIndex Pos) {
 void LiveIntervals::splitSeparateComponents(LiveInterval &LI,
     SmallVectorImpl<LiveInterval*> &SplitLIs) {
   ConnectedVNInfoEqClasses ConEQ(*this);
-  unsigned NumComp = ConEQ.Classify(&LI);
+  unsigned NumComp = ConEQ.Classify(LI);
   if (NumComp <= 1)
     return;
   DEBUG(dbgs() << "  Split " << NumComp << " components: " << LI << '\n');