Skip to content

Commit 1c9aa59

Browse files
committed
Renable LLVM's MergeFunctions pass
rdar://20920907 Swift SVN r32421
1 parent 6af6048 commit 1c9aa59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/IRGen/IRGen.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ static bool performLLVM(IRGenOptions &Opts, DiagnosticEngine &Diags,
149149
PMBuilder.Inliner = llvm::createFunctionInliningPass(200);
150150
PMBuilder.SLPVectorize = false;
151151
PMBuilder.LoopVectorize = true;
152+
PMBuilder.MergeFunctions = true;
152153
} else {
153154
PMBuilder.OptLevel = 0;
154155
if (!Opts.DisableLLVMOptzns)

0 commit comments

Comments
 (0)