summaryrefslogtreecommitdiff
path: root/lib/CodeGen/BranchFolding.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-11-17 17:06:18 +0000
committerBob Wilson <bob.wilson@apple.com>2009-11-17 17:06:18 +0000
commit56ea69c3a251434db3fef489881368e29c95712d (patch)
treea968fd1ff685801fa63c9905de0d35bd1bffe2b1 /lib/CodeGen/BranchFolding.h
parent2cd8abbf8631921c744d021214dd21998a25a946 (diff)
downloadllvm-56ea69c3a251434db3fef489881368e29c95712d.tar.gz
llvm-56ea69c3a251434db3fef489881368e29c95712d.tar.bz2
llvm-56ea69c3a251434db3fef489881368e29c95712d.tar.xz
Perform tail duplication only once, after tail merging is complete.
It was too difficult to keep the heuristics for merging and duplication consistent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.h')
-rw-r--r--lib/CodeGen/BranchFolding.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/BranchFolding.h b/lib/CodeGen/BranchFolding.h
index 648ec92b1e..4920755c22 100644
--- a/lib/CodeGen/BranchFolding.h
+++ b/lib/CodeGen/BranchFolding.h
@@ -105,9 +105,8 @@ namespace llvm {
unsigned CreateCommonTailOnlyBlock(MachineBasicBlock *&PredBB,
unsigned maxCommonTailLength);
- bool TailDuplicate(MachineBasicBlock *TailBB,
- bool PrevFallsThrough,
- MachineFunction &MF);
+ bool TailDuplicateBlocks(MachineFunction &MF);
+ bool TailDuplicate(MachineBasicBlock *TailBB, MachineFunction &MF);
bool OptimizeBranches(MachineFunction &MF);
bool OptimizeBlock(MachineBasicBlock *MBB);