summaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-11-18 23:48:57 +0000
committerBob Wilson <bob.wilson@apple.com>2009-11-18 23:48:57 +0000
commitfbb6b67df086fa5ed54e2ff27c15e4c087883957 (patch)
tree44c64e1406f68a287818528d929b6ed58d83327d /lib/CodeGen/BranchFolding.cpp
parent41a0456a3c943de8a50e9b1b1e2f1f493c236660 (diff)
downloadllvm-fbb6b67df086fa5ed54e2ff27c15e4c087883957.tar.gz
llvm-fbb6b67df086fa5ed54e2ff27c15e4c087883957.tar.bz2
llvm-fbb6b67df086fa5ed54e2ff27c15e4c087883957.tar.xz
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
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r--lib/CodeGen/BranchFolding.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
index 871d6dc576..f807e8fa26 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++;