[LLVMdev] Loopinfo Analysis

Hisham Chowdhury hisham_chow at yahoo.com
Wed Jun 16 16:22:00 PDT 2010


Hello,
I have a question regrading the analysis pass that generates loop info from an .ll code. My previous understanding was there will be just one loop header(in the loop info) for a particular loop. But, when i use isLoopHeader() member function from the loop info class I get 'true' return value for two different basic blocks. Note both basic blocks are loop conditional block(break condition of the loop), but only one starts the loop. Is this the right behavior for the isLoopHeader() member function?

Thanks for help,
Hisham


      



More information about the llvm-dev mailing list