On 02/20/2013 12:42 PM, Blind Faith wrote:
> I can get the loop header block by using
> getAnalysis < LoopInfo > ( *F ).isLoopHeader( BB )
> But is there any way with with you can also check the blocks containing
Usually, the loop header is the BB with the backedge. You can get the
number of backedges by using "getNumBackEdges()" of the LoopInfo pass.
You can also use the DominatorTree directly to search for backedges.
Mit freundlichen Grüßen / Kind regards
Zuse Institute Berlin (ZIB)