[PATCH] D91558: [Debugify] Skip debugifying on special/immutable passes

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 16 11:53:19 PST 2020


aeubanks created this revision.
aeubanks added a reviewer: MaskRay.
Herald added subscribers: llvm-commits, dexonsmith, hiraditya.
Herald added a project: LLVM.
aeubanks requested review of this revision.

With a function pass manager, it would insert debuginfo metadata before
getting to function passes while processing the pass manager, causing
debugify to skip while running the function passes.

Skip special passes + verifier + printing passes. Compared to the legacy
implementation of -debugify-each, this additionally skips verifier
passes. Probably no need to update the legacy version since it will be
obsolete soon.

This fixes 2 instcombine tests using -debugify-each under NPM.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91558

Files:
  llvm/lib/IR/PassInstrumentation.cpp
  llvm/lib/Transforms/Utils/Debugify.cpp
  llvm/test/DebugInfo/debugify-each.ll
  llvm/test/DebugInfo/debugify-export.ll
  llvm/test/Transforms/InstCombine/call-guard.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91558.305569.patch
Type: text/x-patch
Size: 5135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201116/615e5a8d/attachment.bin>


More information about the llvm-commits mailing list