diff options
author | Jessica Paquette <jpaquette@apple.com> | 2018-06-28 17:26:18 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2018-06-28 17:26:18 +0000 |
commit | f3a44fe8338abf1574bd43a2a501cf49866bbd0e (patch) | |
tree | 848952e1a3335faceedc0fd781e21fc94f76d473 /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | 52b2456a95407bad5960352778b24417b4a3da29 (diff) | |
download | bcm5719-llvm-f3a44fe8338abf1574bd43a2a501cf49866bbd0e.tar.gz bcm5719-llvm-f3a44fe8338abf1574bd43a2a501cf49866bbd0e.zip |
Revert "[MachineOutliner] Never add the outliner in -O0"
This reverts commit 9c7c10e4073a0bc6a759ce5cd33afbac74930091.
It relies on r335872 since that introduces the machine outliner
flags test. I meant to commit D48683 in that commit, but got mixed
up and committed D48682 instead. So, I'm reverting this and
r335872, since D48682 hasn't made it through review yet.
llvm-svn: 335882
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index 74cd56b40a7..20771eef620 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -914,8 +914,7 @@ void TargetPassConfig::addMachinePasses() { addPass(&XRayInstrumentationID, false); addPass(&PatchableFunctionID, false); - if (getOptLevel() != CodeGenOpt::None && - EnableMachineOutliner == AlwaysOutline) + if (EnableMachineOutliner == AlwaysOutline) addPass(createMachineOutlinerPass()); // Add passes that directly emit MI after all other MI passes. |