Use getVNInfoAt.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 2 Jul 2011 07:50:27 +0000 (07:50 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 2 Jul 2011 07:50:27 +0000 (07:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134312 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegisterCoalescer.cpp

index 13ae04283a9b93eadaa06adddbe86c0760431074..3b2046a5c9e107c79773badfb7c7d8a9ac8a11d5 100644 (file)
@@ -1253,8 +1253,7 @@ static bool RegistersDefinedFromSameValue(LiveIntervals &li,
 
   // If the copies use two different value numbers of X, we cannot merge
   // A and B.
-  if (SrcInt.FindLiveRangeContaining(Other->def)->valno !=
-      SrcInt.FindLiveRangeContaining(VNI->def)->valno)
+  if (SrcInt.getVNInfoAt(Other->def) != SrcInt.getVNInfoAt(VNI->def))
     return false;
 
   DupCopies.push_back(MI);