Deriving the count of a block from function's entry count and block's relative frequency is a useful utility. At present, ProfileCommon.h has a function that just does the arithmetic, and still needs to be passed the BFI of the block. Moving it to BFI makes it easier to use.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I don't see any existing unittests covering BFI interfaces, it might be a good opportunity to add one.
Comment Actions
Looks like a good cleanup to me. You can clean up includes as noted below.
lib/Bitcode/Writer/BitcodeWriter.cpp | ||
---|---|---|
37 ↗ | (On Diff #50997) | This include can presumably be removed with this change. |