[LLVMdev] ModulePass using BreakCriticalEdges [Followup]

Chris Lattner clattner at apple.com
Wed May 13 10:13:59 PDT 2009


On May 13, 2009, at 7:39 AM, Andreas Neustifter wrote:

> Hi,
>
> Andreas Neustifter wrote:
>> 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.
>
> I now also added a (selfwritten) FunctionPass with is member of the
> analysis group ProfileInfo

This isn't an answer to your question, but you can also use the  
SplitCriticalEdge family of functions from your pass, without using  
the BreakCriticalEdges pass.

-Chris




More information about the llvm-dev mailing list