From b3c5aa20eaeb9cce922a56f1f8c9a870ce227443 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Wed, 18 Nov 2009 23:48:57 +0000 Subject: There should be no need to keep renumbering blocks during tail duplication. llvm-svn: 89275 --- llvm/lib/CodeGen/BranchFolding.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 871d6dc5765..f807e8fa261 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/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++; -- cgit v1.2.3