Skip to content

Commit ad832b4

Browse files
committed
fix param in codegenpassbuilder
1 parent 0f98512 commit ad832b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/include/llvm/Passes/CodeGenPassBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ void CodeGenPassBuilder<Derived, TargetMachineT>::addMachineLateOptimization(
12241224
template <typename Derived, typename TargetMachineT>
12251225
void CodeGenPassBuilder<Derived, TargetMachineT>::addBlockPlacement(
12261226
AddMachinePass &addPass) const {
1227-
addPass(MachineBlockPlacementPass());
1227+
addPass(MachineBlockPlacementPass(Opt.EnableTailMerge));
12281228
// Run a separate pass to collect block placement statistics.
12291229
if (Opt.EnableBlockPlacementStats)
12301230
addPass(MachineBlockPlacementStatsPass());

llvm/include/llvm/Target/CGPassBuilderOption.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ struct CGPassBuilderOption {
5050
bool EnableGlobalMergeFunc = false;
5151
bool EnableMachineFunctionSplitter = false;
5252
bool EnableSinkAndFold = false;
53+
bool EnableTailMerge = true;
5354
bool MISchedPostRA = false;
5455
bool EarlyLiveIntervals = false;
5556
bool GCEmptyBlocks = false;

0 commit comments

Comments
 (0)