Displaying 1 result from an estimated 1 matches for "projectinfo".
Did you mean:
productinfo
2008 Nov 02
0
[LLVMdev] Strange behaviour with profile data loading
...t profile data.
What I want to do is have a profile-guided pass which works at the
MachineFunction level. I did the same thing, i.e.
1. In my getAnalysisUsage function, I call addRequired<ProfileInfo>(), and
2. In the runOnFunction, I call getAnalysis<ProfileInfo>() which returns me
a ProjectInfo object pointer.
However, when I use the ProfileInfo object pointer returned to me, every
BasicBlock's execution count is 0. Notice that I pass in the BasicBlock*,
and not the MachineBasicBlock* (which is what BasicBlockPlacement.cpp does
as well).
How can it be that when BasicBlockPlacement....