diff options
author | Björn Pettersson <bjorn.a.pettersson@ericsson.com> | 2024-01-03 13:49:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 13:49:13 +0100 |
commit | 7dc0ba949c1527808b7ceea58bdd72c9f3e2e300 (patch) | |
tree | e26776fcfb2ed2ef67ab1a71a7f5b0eedf63472d /llvm/test/Analysis | |
parent | 11a702d215bf3fe5d185b9005e76c76c3001dd0c (diff) | |
download | llvm-7dc0ba949c1527808b7ceea58bdd72c9f3e2e300.zip llvm-7dc0ba949c1527808b7ceea58bdd72c9f3e2e300.tar.gz llvm-7dc0ba949c1527808b7ceea58bdd72c9f3e2e300.tar.bz2 |
[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
Diffstat (limited to 'llvm/test/Analysis')
-rw-r--r-- | llvm/test/Analysis/LoopInfo/annotated-parallel-simple.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Analysis/LoopInfo/annotated-parallel-simple.ll b/llvm/test/Analysis/LoopInfo/annotated-parallel-simple.ll index d96ff49..24ed59c 100644 --- a/llvm/test/Analysis/LoopInfo/annotated-parallel-simple.ll +++ b/llvm/test/Analysis/LoopInfo/annotated-parallel-simple.ll @@ -33,5 +33,5 @@ for.end: !7 = distinct !{!7, !9} ; LoopID !9 = !{!"llvm.loop.parallel_accesses", !6} - -; CHECK: Parallel Loop +; CHECK: Loop info for function 'func': +; CHECK: Parallel Loop at depth 1 containing: |