diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2009-11-17 17:06:18 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2009-11-17 17:06:18 +0000 |
| commit | bd22f1965df54776271167f5190c39364a701a6d (patch) | |
| tree | fc9b1e24442febca2bd905d9849f3b2fe2806f61 /llvm/lib/CodeGen/BranchFolding.h | |
| parent | 99fcb0eaa95d05e72aea47224c487d833e4912e6 (diff) | |
| download | bcm5719-llvm-bd22f1965df54776271167f5190c39364a701a6d.tar.gz bcm5719-llvm-bd22f1965df54776271167f5190c39364a701a6d.zip | |
Perform tail duplication only once, after tail merging is complete.
It was too difficult to keep the heuristics for merging and duplication
consistent.
llvm-svn: 89105
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.h')
| -rw-r--r-- | llvm/lib/CodeGen/BranchFolding.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.h b/llvm/lib/CodeGen/BranchFolding.h index 648ec92b1eb..4920755c227 100644 --- a/llvm/lib/CodeGen/BranchFolding.h +++ b/llvm/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); |

