[all-commits] [llvm/llvm-project] 7dc0ba: [LoopInfo][NewPM] Print function name in LoopPrint...
Björn Pettersson via All-commits
all-commits at lists.llvm.org
Wed Jan 3 04:49:26 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7dc0ba949c1527808b7ceea58bdd72c9f3e2e300
https://github.com/llvm/llvm-project/commit/7dc0ba949c1527808b7ceea58bdd72c9f3e2e300
Author: Björn Pettersson <bjorn.a.pettersson at ericsson.com>
Date: 2024-01-03 (Wed, 03 Jan 2024)
Changed paths:
M llvm/lib/Analysis/LoopInfo.cpp
M llvm/test/Analysis/LoopInfo/annotated-parallel-simple.ll
Log Message:
-----------
[LoopInfo][NewPM] Print function name in LoopPrinterPass (#76527)
The legacy pass manager printed the function name when printing
loop info (via -analyze option). Like this:
Printing analysis 'Natural Loop Information' for function 'func':
Loop at depth 1 containing: ...
Loop at depth 2 containing: ...
Make sure we print such a first line including the function name
also when using the new pass manager version of LoopPrinterPass.
The format of the string is changed slightly, so now we say:
Loop info for function 'func':
Loop at depth 1 containing: ...
Loop at depth 2 containing: ...
This was originally requested in
https://discourse.llvm.org/t/need-usage-help-w-new-pass-manager-for-opt-analysis-natural-loop-information/75874/7
and also mentioned in
https://github.com/llvm/llvm-project/issues/76762
More information about the All-commits
mailing list