[llvm-commits] [llvm] r134312 - /llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp

Rafael Espindola rafael.espindola at gmail.com
Sat Jul 2 00:50:27 PDT 2011


Author: rafael
Date: Sat Jul  2 02:50:27 2011
New Revision: 134312

URL: http://llvm.org/viewvc/llvm-project?rev=134312&view=rev
Log:
Use getVNInfoAt.

Modified:
    llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp

Modified: llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp?rev=134312&r1=134311&r2=134312&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp Sat Jul  2 02:50:27 2011
@@ -1253,8 +1253,7 @@
 
   // 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);





More information about the llvm-commits mailing list