[llvm-commits] [llvm] r86641 - /llvm/trunk/lib/CodeGen/BranchFolding.cpp

Dan Gohman gohman at apple.com
Mon Nov 9 17:36:20 PST 2009


Author: djg
Date: Mon Nov  9 19:36:20 2009
New Revision: 86641

URL: http://llvm.org/viewvc/llvm-project?rev=86641&view=rev
Log:
Minor code simplification.

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

Modified: llvm/trunk/lib/CodeGen/BranchFolding.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/BranchFolding.cpp?rev=86641&r1=86640&r2=86641&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/BranchFolding.cpp (original)
+++ llvm/trunk/lib/CodeGen/BranchFolding.cpp Mon Nov  9 19:36:20 2009
@@ -600,7 +600,7 @@
 
   // Walk through equivalence sets looking for actual exact matches.
   while (MergePotentials.size() > 1) {
-    unsigned CurHash  = prior(MergePotentials.end())->first;
+    unsigned CurHash  = MergePotentials.back().first;
     
     // Build SameTails, identifying the set of blocks with this hash code
     // and with the maximum number of instructions in common.





More information about the llvm-commits mailing list