Displaying 1 result from an estimated 1 matches for "znqqjdtn".
2020 Oct 01
3
How to get the loop hotness data in a suite ?
...t a .profraw
- Get the .profdata
- Give that back to clang with -fprofile-instr-use and generate .ll
- I note that here we get "branch_weights" stats, so if a branch is a
back-edge,
it basically gives us the iteration count. For example, check the bottom of
this file: https://pastebin.com/ZnQqJdTN which was created with the
procedure above.
- Then, create a custom pass that goes through every loop and gathers this
"branch_weights" data.
I feel like this is both not very accurate and overly complicated for
something that I
guess a lot of people probably have needed to gather in the...