[PATCH] D39565: [ThinLTO] Ensure sanitizer passes are run
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 8 11:46:42 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL317714: [ThinLTO] Ensure sanitizer passes are run (authored by tejohnson).
Repository:
rL LLVM
https://reviews.llvm.org/D39565
Files:
llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
Index: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
===================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -548,6 +548,9 @@
// unrolling/vectorization/... now. We'll first run the inliner + CGSCC passes
// during ThinLTO and perform the rest of the optimizations afterward.
if (PrepareForThinLTO) {
+ // Ensure we perform any last passes, but do so before renaming anonymous
+ // globals in case the passes add any.
+ addExtensionsToPM(EP_OptimizerLast, MPM);
// Rename anon globals to be able to export them in the summary.
MPM.add(createNameAnonGlobalPass());
return;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39565.122131.patch
Type: text/x-patch
Size: 741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171108/11607ffe/attachment.bin>
More information about the llvm-commits
mailing list