Displaying 2 results from an estimated 2 matches for "profileestimatorid".
Did you mean:
profileestimator
2009 May 13
3
[LLVMdev] ModulePass using BreakCriticalEdges
Hi,
I'm writing a ModulePass that needs critical edges split up. I have the
statement
AU.addRequiredID(BreakCriticalEdgesID);
in my getAnalysisUsage() but the pass never gets executed.
I guess I have to request pass execution for each function, but I can't
get behind how to do that, since there is no analysis group for that
kind of transformation.
Thanks, Andi
2009 May 13
0
[LLVMdev] ModulePass using BreakCriticalEdges [Followup]
...> I guess I have to request pass execution for each function, but I can't
> get behind how to do that, since there is no analysis group for that
> kind of transformation.
I now also added a (selfwritten) FunctionPass with is member of the
analysis group ProfileInfo
AU.addRequiredID(ProfileEstimatorID);
AU.addRequired<ProfileInfo>();
and fetching the ProfileInfo by executing
ProfileInfo *PI = &getAnalysis<ProfileInfo>(*F);
and now the BreakCriticalEdge pass gets also executed.
Seems to me that the FunctionPassManager generated when requesting the
ProfileInfo also executes t...