summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Passes/PassBuilder.cpp
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2017-06-29 23:08:38 +0000
committerTim Shen <timshen91@gmail.com>2017-06-29 23:08:38 +0000
commit664706916b5ce486cd109d51687dc05da95d104f (patch)
tree3d5e6b95327c6076b8e9bc6b8722a50997ed7b72 /llvm/lib/Passes/PassBuilder.cpp
parent8e293f15db41fc7c3f7017bfe2fa8acc33ceaff8 (diff)
downloadbcm5719-llvm-664706916b5ce486cd109d51687dc05da95d104f.tar.gz
bcm5719-llvm-664706916b5ce486cd109d51687dc05da95d104f.zip
[ThinkLTO] Invoke build(Thin)?LTOPreLinkDefaultPipeline.
Previously it doesn't actually invoke the designated new PM builder functions. This patch moves NameAnonGlobalPass out from PassBuilder, as Chandler points out that PassBuilder is used for non-O0 builds, and for optimizations only. Differential Revision: https://reviews.llvm.org/D34728 llvm-svn: 306756
Diffstat (limited to 'llvm/lib/Passes/PassBuilder.cpp')
-rw-r--r--llvm/lib/Passes/PassBuilder.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 78dfea1c441..bc73cdda88b 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -758,9 +758,6 @@ PassBuilder::buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level,
// Reduce the size of the IR as much as possible.
MPM.addPass(GlobalOptPass());
- // Rename anon globals to be able to export them in the summary.
- MPM.addPass(NameAnonGlobalPass());
-
return MPM;
}
OpenPOWER on IntegriCloud