[PATCH] D101797: [NewPM] Hide pass manager debug logging behind -debug-pass-manager-verbose

Arthur Eubanks via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 3 16:18:14 PDT 2021


aeubanks created this revision.
aeubanks added reviewers: asbirlea, ychen.
Herald added subscribers: dexonsmith, wenlei, lxfind, kerbowa, steven_wu, zzheng, hiraditya, eraman, sbc100, nhaehnle, jvesely, emaste, arsenm, jholewinski.
Herald added a reviewer: bollu.
aeubanks requested review of this revision.
Herald added subscribers: llvm-commits, cfe-commits, MaskRay, aheejin.
Herald added projects: clang, LLVM.

Printing pass manager invocations is fairly verbose and not super
useful.

This allows us to remove DebugLogging from pass managers and PassBuilder
since all logging (aside from analysis managers) goes through
instrumentation now.

This has the downside of never being able to print the top level pass
manager via instrumentation, but that seems like a minor downside.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101797

Files:
  clang/lib/CodeGen/BackendUtil.cpp
  clang/test/CodeGen/lto-newpm-pipeline.c
  clang/test/CodeGen/thinlto-distributed-newpm.ll
  clang/test/CodeGenCoroutines/coro-newpm-pipeline.cpp
  lld/test/COFF/lto-new-pass-manager.ll
  lld/test/ELF/lto/new-pass-manager.ll
  lld/test/wasm/lto/new-pass-manager.ll
  llvm/include/llvm/CodeGen/MachinePassManager.h
  llvm/include/llvm/IR/PassManager.h
  llvm/include/llvm/Passes/PassBuilder.h
  llvm/include/llvm/Target/TargetMachine.h
  llvm/include/llvm/Transforms/IPO/Inliner.h
  llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
  llvm/lib/Analysis/CGSCCPassManager.cpp
  llvm/lib/CodeGen/MachinePassManager.cpp
  llvm/lib/LTO/LTOBackend.cpp
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/lib/Passes/StandardInstrumentations.cpp
  llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
  llvm/lib/Target/BPF/BPFTargetMachine.cpp
  llvm/lib/Target/BPF/BPFTargetMachine.h
  llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
  llvm/lib/Target/Hexagon/HexagonTargetMachine.h
  llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
  llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
  llvm/lib/Transforms/IPO/Inliner.cpp
  llvm/lib/Transforms/Scalar/LoopPassManager.cpp
  llvm/test/Other/loop-pm-invalidation.ll
  llvm/test/Other/new-pass-manager.ll
  llvm/test/Other/new-pm-O0-defaults.ll
  llvm/test/Other/new-pm-defaults.ll
  llvm/test/Other/new-pm-lto-defaults.ll
  llvm/test/Other/new-pm-pgo-preinline.ll
  llvm/test/Other/new-pm-thinlto-defaults.ll
  llvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-prelink-pgo-defaults.ll
  llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
  llvm/test/Other/pass-pipeline-parsing.ll
  llvm/test/Transforms/Inline/cgscc-incremental-invalidate.ll
  llvm/test/Transforms/Inline/clear-analyses.ll
  llvm/test/Transforms/LoopRotate/pr35210.ll
  llvm/test/Transforms/LoopUnroll/unroll-loop-invalidation.ll
  llvm/test/Transforms/SCCP/ipsccp-preserve-analysis.ll
  llvm/test/Transforms/SCCP/preserve-analysis.ll
  llvm/test/Transforms/SROA/dead-inst.ll
  llvm/test/tools/gold/X86/new-pm.ll
  llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
  llvm/tools/opt/NewPMDriver.cpp
  llvm/unittests/Analysis/CGSCCPassManagerTest.cpp
  llvm/unittests/IR/PassBuilderCallbacksTest.cpp
  llvm/unittests/IR/PassManagerTest.cpp
  llvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp
  polly/lib/Support/RegisterPasses.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101797.342581.patch
Type: text/x-patch
Size: 218939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210503/993cb882/attachment-0001.bin>


More information about the cfe-commits mailing list