[PATCH] D123878: [AMDGPU] Add remarks to output some resource usage
Scott Linder via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 15:48:13 PDT 2022
scott.linder added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp:596
+ MF.getFunction().getSubprogram(), &MF.front())
+ << "------------------------------";
+ });
----------------
This seems like the wrong place to segment the output; could this be made a part of the emitter itself?
Or maybe better yet, could all of these values be collected into a single remark? That seems to be how e.g. `llvm/lib/CodeGen/RegAllocGreedy.cpp` does it:
```
Pass: regalloc Name: SpillReloadCopies Function: f Args: - NumSpills: '1' - String: ' spills ' - TotalSpillsCost: '1.000000e+00' - String: ' total spills cost ' - NumReloads: '1' - String: ' reloads ' - TotalReloadsCost: '1.000000e+00' - String: ' total reloads cost ' - String: generated in function
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123878/new/
https://reviews.llvm.org/D123878
More information about the llvm-commits
mailing list