[PATCH] D106290: [NewPM] Print pre-transformation IR name in --print-after-all
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 10:38:08 PDT 2021
aeubanks created this revision.
Herald added subscribers: ormris, hiraditya.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Sometimes a transformation can change the name of some IR (e.g. an SCC
with functions added/removed). This can be confusing when debug logging
doesn't match the post-transformation name. The specific example I came
across was that --print-after-all said the inliner was working on an SCC
that only contained one function, but calls in multiple functions were
getting inlined. After all inlining, the current SCC only contained one
function.
Piggyback off of the existing logic to handle invalidated IR +
--print-module-scope. Simply always store the IR description and use
that.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106290
Files:
llvm/include/llvm/Passes/StandardInstrumentations.h
llvm/lib/Passes/StandardInstrumentations.cpp
llvm/test/Other/loop-deletion-printer.ll
llvm/test/Other/scc-deleted-printer.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106290.359840.patch
Type: text/x-patch
Size: 5211 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210719/01d4deee/attachment.bin>
More information about the llvm-commits
mailing list