From: Bob Wilson Date: Wed, 18 Nov 2009 23:48:57 +0000 (+0000) Subject: There should be no need to keep renumbering blocks during tail duplication. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fbb6b67df086fa5ed54e2ff27c15e4c087883957;p=oota-llvm.git There should be no need to keep renumbering blocks during tail duplication. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89275 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index 871d6dc5765..f807e8fa261 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -1011,9 +1011,6 @@ static bool IsBetterFallthrough(MachineBasicBlock *MBB1, 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++;