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

Bob Wilson bob.wilson at apple.com
Wed Nov 18 15:48:59 PST 2009


Author: bwilson
Date: Wed Nov 18 17:48:57 2009
New Revision: 89275

URL: http://llvm.org/viewvc/llvm-project?rev=89275&view=rev
Log:
There should be no need to keep renumbering blocks during tail duplication.

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=89275&r1=89274&r2=89275&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/BranchFolding.cpp (original)
+++ llvm/trunk/lib/CodeGen/BranchFolding.cpp Wed Nov 18 17:48:57 2009
@@ -1011,9 +1011,6 @@
 bool BranchFolder::TailDuplicateBlocks(MachineFunction &MF) {
   bool MadeChange = false;
 
-  // Make sure blocks are numbered in order
-  MF.RenumberBlocks();
-
   for (MachineFunction::iterator I = ++MF.begin(), E = MF.end(); I != E; ) {
     MachineBasicBlock *MBB = I++;
 





More information about the llvm-commits mailing list