]> granicus.if.org Git - llvm/commit
[NewPM][PassInstrumentation] IR printing support for (Thin)LTO
authorTaewook Oh <twoh@fb.com>
Thu, 15 Aug 2019 17:47:44 +0000 (17:47 +0000)
committerTaewook Oh <twoh@fb.com>
Thu, 15 Aug 2019 17:47:44 +0000 (17:47 +0000)
commit49aed1565ec79ddd25875edc4dd271d71a36efbf
tree82989574c2b6a19f234f1cda38dcd56a1c12a6e0
parentde920afcf3a387d0497a55454941e13aead59c2d
[NewPM][PassInstrumentation] IR printing support for (Thin)LTO

Summary: IR printing has not been correctly supported with (Thin)LTO if the new pass manager is enabled. Previously we only get outputs from backend(codegen) passes, as they are still under legacy pass manager even when the new pass manager is enabled. This patch addresses the issue and enables IR printing for optimization passes with new pass manager + (Thin)LTO setting.

Reviewers: fedor.sergeev, philip.pfaffe

Subscribers: mehdi_amini, inglorion, hiraditya, steven_wu, dexonsmith, dang, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66253

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369024 91177308-0d34-0410-b5e6-96231b3b80d8
lib/LTO/LTOBackend.cpp
test/ThinLTO/X86/printer.ll [new file with mode: 0644]