forked from OSchip/llvm-project
1821265db6
Currently, -ftime-report + new pass manager emits one line of report for each pass run. This potentially causes huge output text especially with regular LTO or large single file (Obeserved in private tests and was reported in D51276). The behaviour of -ftime-report + legacy pass manager is emitting one line of report for each pass object which has relatively reasonable text output size. This patch adds a flag `-ftime-report=` to control time report aggregation for new pass manager. The flag is for new pass manager only. Using it with legacy pass manager gives an error. It is a driver and cc1 flag. `per-pass` is the new default so `-ftime-report` is aliased to `-ftime-report=per-pass`. Before this patch, functionality-wise `-ftime-report` is aliased to `-ftime-report=per-pass-run`. * Adds an boolean variable TimePassesHandler::PerRun to control per-pass vs per-pass-run. * Adds a new clang CodeGen flag CodeGenOptions::TimePassesPerRun to work with the existing CodeGenOptions::TimePasses. * Remove FrontendOptions::ShowTimers, its uses are replaced by the existing CodeGenOptions::TimePasses. * Remove FrontendTimesIsEnabled (It was introduced in D45619 which was largely reverted.) Differential Revision: https://reviews.llvm.org/D92436 |
||
---|---|---|
.. | ||
Inputs | ||
X86 | ||
2002-01-31-CallGraph.ll | ||
2002-02-24-InlineBrokePHINodes.ll | ||
2004-08-16-PackedConstantInlineStore.ll | ||
2004-08-16-PackedGlobalConstant.ll | ||
2004-08-16-PackedSelect.ll | ||
2004-08-16-PackedSimple.ll | ||
2004-08-20-PackedControlFlow.ll | ||
2006-02-05-PassManager.ll | ||
2007-06-05-PassID.ll | ||
2007-06-28-PassManager.ll | ||
2007-09-10-PassManager.ll | ||
2008-02-14-PassManager.ll | ||
2008-06-04-FieldSizeInPacked.ll | ||
2008-10-06-RemoveDeadPass.ll | ||
2008-10-15-MissingSpace.ll | ||
2009-03-31-CallGraph.ll | ||
2009-06-05-no-implicit-float.ll | ||
2009-09-14-function-elements.ll | ||
2010-05-06-Printer.ll | ||
FileCheck-space.txt | ||
ResponseFile.ll | ||
attribute-comment.ll | ||
available-externally-lto.ll | ||
bb-badref.ll | ||
bcanalyzer-block-info.txt | ||
bcanalyzer-dump-option.txt | ||
can-execute.txt | ||
cfg-printer-branch-weights-percent.ll | ||
cfg-printer-branch-weights.ll | ||
cfg_deopt_unreach.ll | ||
cgscc-devirt-iteration.ll | ||
cgscc-disconnected-invalidation.ll | ||
cgscc-iterate-function-mutation.ll | ||
cgscc-libcall-update.ll | ||
cgscc-observe-devirt.ll | ||
change-printer.ll | ||
cleanup-lcssa.ll | ||
codegenprepare-and-debug.ll | ||
constant-fold-gep-address-spaces.ll | ||
constant-fold-gep.ll | ||
cspgo-O2-pipeline.ll | ||
debugcounter-dce.ll | ||
debugcounter-earlycse.ll | ||
debugcounter-newgvn.ll | ||
debugcounter-predicateinfo.ll | ||
devirtualization-undef.ll | ||
extract-alias.ll | ||
extract-linkonce.ll | ||
extract-weak-odr.ll | ||
extract.ll | ||
heat-colors-graphs.ll | ||
heat-colors-multigraph.ll | ||
invalid-commandline-option.ll | ||
invariant.group.ll | ||
lint.ll | ||
lit-globbing.ll | ||
lit-quoting.txt | ||
lit-unicode.txt | ||
llvm-nm-without-aliases.ll | ||
loop-deletion-printer.ll | ||
loop-pass-ordering.ll | ||
loop-pass-printer.ll | ||
loop-pm-invalidation.ll | ||
machine-size-remarks.ll | ||
module-pass-printer.ll | ||
new-pass-manager-verify-each.ll | ||
new-pass-manager.ll | ||
new-pm-O0-defaults.ll | ||
new-pm-O0-ep-callbacks.ll | ||
new-pm-cspgo.ll | ||
new-pm-defaults.ll | ||
new-pm-lto-defaults.ll | ||
new-pm-module-inliner-wrapper.ll | ||
new-pm-pgo-O0.ll | ||
new-pm-pgo.ll | ||
new-pm-pr42726-cgscc.ll | ||
new-pm-thinlto-defaults.ll | ||
new-pm-thinlto-postlink-pgo-defaults.ll | ||
new-pm-thinlto-postlink-samplepgo-defaults.ll | ||
new-pm-thinlto-prelink-pgo-defaults.ll | ||
new-pm-thinlto-prelink-samplepgo-defaults.ll | ||
new-pm-time-trace.ll | ||
opt-LTO-pipeline.ll | ||
opt-O0-pipeline-enable-matrix.ll | ||
opt-O0-pipeline.ll | ||
opt-O2-pipeline.ll | ||
opt-O3-pipeline-enable-matrix.ll | ||
opt-O3-pipeline.ll | ||
opt-Os-pipeline.ll | ||
opt-bisect-helper.py | ||
opt-bisect-legacy-pass-manager.ll | ||
opt-bisect-new-pass-manager.ll | ||
opt-hot-cold-split.ll | ||
opt-npm.ll | ||
opt-old-new-pm-passes.ll | ||
opt-override-denormal-fp-math-f32.ll | ||
opt-override-denormal-fp-math-mixed.ll | ||
opt-override-denormal-fp-math.ll | ||
opt-override-frame-pointer.ll | ||
opt-override-mcpu-mattr.ll | ||
opt-pipeline-vector-passes.ll | ||
opt-twice.ll | ||
optimization-remarks-auto.ll | ||
optimization-remarks-inline.ll | ||
optimization-remarks-invalidation.ll | ||
optimization-remarks-lazy-bfi.ll | ||
optimize-inrange-gep.ll | ||
optimize-options.ll | ||
pass-pipeline-parsing.ll | ||
pass-pipelines.ll | ||
pipefail.txt | ||
pr32085.ll | ||
print-before-after.ll | ||
print-cfg-sccs.ll | ||
print-debug-counter.ll | ||
print-module-scope.ll | ||
print-slotindexes.ll | ||
printer.ll | ||
scalable-vector-array.ll | ||
scalable-vector-struct.ll | ||
scalable-vectors-core-ir.ll | ||
scc-deleted-printer.ll | ||
scc-pass-printer.ll | ||
size-remarks.ll | ||
spir_cc.ll | ||
statistic.ll | ||
time-passes.ll | ||
unroll-sroa.ll | ||
writing-to-stdout.ll |