summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitb3c5aa20eaeb9cce922a56f1f8c9a870ce227443 (patch)
treee81d3e3ed8c51e586aee1014c9ea643e91751425 /llvm/lib/CodeGen/BranchFolding.cpp
parent6456fb94f5c98d0355d252a3e8d3f42d5202dc4c (diff)
downloadbcm5719-llvm-b3c5aa20eaeb9cce922a56f1f8c9a870ce227443.tar.gz
bcm5719-llvm-b3c5aa20eaeb9cce922a56f1f8c9a870ce227443.zip
There should be no need to keep renumbering blocks during tail duplication.
llvm-svn: 89275
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp3
1 files changed, 0 insertions, 3 deletions
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++;
OpenPOWER on IntegriCloud