diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-10-23 22:10:12 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-10-23 22:10:12 +0000 |
| commit | ebdb1d672436b10a00c34aa0699ffc14aaf1409f (patch) | |
| tree | 904576039c42b6791061b7765d97c420f81497bc /llvm/lib/CodeGen/BranchFolding.cpp | |
| parent | 02a2a5eb3c22960d36729b2b3b949976859ee3b4 (diff) | |
| download | bcm5719-llvm-ebdb1d672436b10a00c34aa0699ffc14aaf1409f.tar.gz bcm5719-llvm-ebdb1d672436b10a00c34aa0699ffc14aaf1409f.zip | |
Enable tail merging by default.
llvm-svn: 31140
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 4643c7414ff..144dbf69083 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -30,7 +30,6 @@ using namespace llvm; static Statistic<> NumDeadBlocks("branchfold", "Number of dead blocks removed"); static Statistic<> NumBranchOpts("branchfold", "Number of branches optimized"); static Statistic<> NumTailMerge ("branchfold", "Number of block tails merged"); -static cl::opt<bool> EnableTailMerge("enable-tail-merge", cl::init(false)); namespace { struct BranchFolder : public MachineFunctionPass { @@ -207,9 +206,6 @@ void BranchFolder::ReplaceTailWithBranchTo(MachineBasicBlock::iterator OldInst, bool BranchFolder::TailMergeBlocks(MachineFunction &MF) { MadeChange = false; - if (!EnableTailMerge) - return false; - // Find blocks with no successors. std::vector<std::pair<unsigned,MachineBasicBlock*> > MergePotentials; for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) { |

