From 56ea69c3a251434db3fef489881368e29c95712d Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Tue, 17 Nov 2009 17:06:18 +0000 Subject: 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 --- lib/CodeGen/BranchFolding.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/CodeGen/BranchFolding.h') 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); -- cgit v1.2.3