[all-commits] [llvm/llvm-project] b4ac84: [clang][NFC] Extract EmitAssemblyHelper::shouldEmi...
Pavel Samolysov via All-commits
all-commits at lists.llvm.org
Thu Apr 7 10:39:05 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b4ac84901e9b88429e5e51dc0b4a17b8d3e37708
https://github.com/llvm/llvm-project/commit/b4ac84901e9b88429e5e51dc0b4a17b8d3e37708
Author: Pavel Samolysov <pavel.samolysov at intel.com>
Date: 2022-04-07 (Thu, 07 Apr 2022)
Changed paths:
M clang/lib/CodeGen/BackendUtil.cpp
Log Message:
-----------
[clang][NFC] Extract EmitAssemblyHelper::shouldEmitRegularLTOSummary
The code to check if the regular LTO summary should be emitted and to
add the corresponding module flags was duplicated in the
'EmitAssemblyHelper::EmitAssemblyWithLegacyPassManager' and
'EmitAssemblyHelper::RunOptimizationPipeline' methods.
In order to eliminate these code duplications, the
'EmitAssemblyHelper::shouldEmitRegularLTOSummary' method has been
extracted. The method returns a bool value, the value is 'true' if the
module summary should be emitted. The patch keeps the setting of the
module flags inline.
Reviewed By: tejohnson
Differential Revision: https://reviews.llvm.org/D123026
More information about the All-commits
mailing list