diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2014-10-24 00:49:29 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2014-10-24 00:49:29 +0000 |
commit | 81eedfd05cf455e9324fc2dd7b63eb49afe8cc26 (patch) | |
tree | 1b742b5dae7bb1d9df82ab0b90a52a4ce7136001 /lib/CodeGen/BackendUtil.cpp | |
parent | 2ca2abc801226101e575a9ee911d3b5fb2e97c41 (diff) |
Add a new -fmerge-functions -cc1 flag that enables function merging.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | lib/CodeGen/BackendUtil.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index 4f1f52ff6a..ecabb081aa 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -247,6 +247,7 @@ void EmitAssemblyHelper::CreatePasses() { PMBuilder.DisableTailCalls = CodeGenOpts.DisableTailCalls; PMBuilder.DisableUnitAtATime = !CodeGenOpts.UnitAtATime; PMBuilder.DisableUnrollLoops = !CodeGenOpts.UnrollLoops; + PMBuilder.MergeFunctions = CodeGenOpts.MergeFunctions; PMBuilder.RerollLoops = CodeGenOpts.RerollLoops; PMBuilder.addExtension(PassManagerBuilder::EP_EarlyAsPossible, |