diff options
author | Michael Zolotukhin <mzolotukhin@apple.com> | 2018-04-09 00:54:47 +0000 |
---|---|---|
committer | Michael Zolotukhin <mzolotukhin@apple.com> | 2018-04-09 00:54:47 +0000 |
commit | 8d052a0dd23f1fd9e3fba1912bd514d2fd687871 (patch) | |
tree | ad81c20e7d446571f2f0c4427a501c6b6d7495b8 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ba0543b32bf0c9a32b0f0d2dfbb7d31de7962570 (diff) | |
download | bcm5719-llvm-8d052a0dd23f1fd9e3fba1912bd514d2fd687871.tar.gz bcm5719-llvm-8d052a0dd23f1fd9e3fba1912bd514d2fd687871.zip |
Remove MachineLoopInfo dependency from AsmPrinter.
Summary:
Currently MachineLoopInfo is used in only two places:
1) for computing IsBasicBlockInsideInnermostLoop field of MCCodePaddingContext, and it is never used.
2) in emitBasicBlockLoopComments, which is called only if `isVerbose()` is true.
Despite that, we currently have a dependency on MachineLoopInfo, which makes
pass manager to compute it and MachineDominator Tree. This patch removes the
use (1) and makes the use (2) lazy, thus avoiding some redundant
recomputations.
Reviewers: opaparo, gadi.haber, rafael, craig.topper, zvi
Subscribers: rengolin, javed.absar, hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D44812
llvm-svn: 329542
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions