Skip to content

Commit fc156b5

Browse files
Default to true
Signed-off-by: Mikhail R. Gadelha <[email protected]>
1 parent f2dd02c commit fc156b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/BranchFolding.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class BranchFolderLegacy : public MachineFunctionPass {
9494
public:
9595
static char ID;
9696

97-
explicit BranchFolderLegacy(bool EnableTailMerge)
97+
explicit BranchFolderLegacy(bool EnableTailMerge = true)
9898
: MachineFunctionPass(ID), EnableTailMerge(EnableTailMerge) {}
9999

100100
bool runOnMachineFunction(MachineFunction &MF) override;
@@ -2088,6 +2088,6 @@ bool BranchFolder::HoistCommonCodeInSuccs(MachineBasicBlock *MBB) {
20882088
return true;
20892089
}
20902090

2091-
MachineFunctionPass *llvm::createBranchFolderPass(bool EnableTailMerge) {
2091+
MachineFunctionPass *llvm::createBranchFolderPass(bool EnableTailMerge = true) {
20922092
return new BranchFolderLegacy(EnableTailMerge);
20932093
}

0 commit comments

Comments
 (0)