diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index 4643c7414ff..144dbf69083 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/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 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 > MergePotentials; for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) {