aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-04-14 14:52:50 -0700
committerArthur Eubanks <aeubanks@google.com>2021-04-15 09:50:55 -0700
commitc8f0a7c215ab4c08ed2f5ac53f080adbb54714ab (patch)
tree0bab66af0b5e64d2c537dee5d340f03f35805e19 /llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp
parentf511dc75e4c130abda77a30299402abaf04d8238 (diff)
downloadllvm-c8f0a7c215ab4c08ed2f5ac53f080adbb54714ab.zip
llvm-c8f0a7c215ab4c08ed2f5ac53f080adbb54714ab.tar.gz
llvm-c8f0a7c215ab4c08ed2f5ac53f080adbb54714ab.tar.bz2
[NewPM] Cleanup IR printing instrumentation
Being lazy with printing the banner seems hard to reason with, we should print it unconditionally first (it could also lead to duplicate banners if we have multiple functions in -filter-print-funcs). The printIR() functions were doing too many things. I separated out the call from PrintPassInstrumentation since we were essentially doing two completely separate things in printIR() from different callers. There were multiple ways to generate the name of some IR. That's all been moved to getIRName(). The printing of the IR name was also inconsistent, now it's always "IR Dump on $foo" where "$foo" is the name. For a function, it's the function name. For a loop, it's what's printed by Loop::print(), which is more detailed. For an SCC, it's the list of functions in parentheses. For a module it's "[module]", to differentiate between a possible SCC with a function called "module". To preserve D74814, we have to check if we're going to print anything at all first. This is unfortunate, but I would consider this a special case that shouldn't be handled in the core logic. Reviewed By: jamieschmeiser Differential Revision: https://reviews.llvm.org/D100231
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp')
0 files changed, 0 insertions, 0 deletions