Print profile counts as the third value in addition to the existing 'float' and
the 'int' values in the textual block frequency dump, if available.
Details
Diff Detail
- Build Status
Buildable 10208 Build 10208: arc lint + arc unit
Event Timeline
include/llvm/Analysis/BlockFrequencyInfoImpl.h | ||
---|---|---|
1286 | can you just pass *F instead of *F->getFunction() ? |
include/llvm/Analysis/BlockFrequencyInfoImpl.h | ||
---|---|---|
1286 | It requires Function* and F can be either Function* or MachineFunction*. MachineFunction isn't a subtype of Function. Do you see otherwise? I tried several ways to handle this issue with templates, but they didn't seem to work mainly because MachineFunction isn't fully defined in this header file and this is a template function that can't be moved to a .cpp file. |
The last note is that, as I suspect, we don't include a header in CodeGen/ into a file under Analysis/ which prevents the overload idea from working.
can you just pass *F instead of *F->getFunction() ?