loop identification

Hello everybody,

I have developed a pass to identify the loops in a bitcode file. For files less than 1500 lines of code I am able to identify all the loops, however if the file is bigger I cannot find any of the loops.
Is there any limit or something about the LoopInfo?

Regards,
Vasileios

From: "Vasileios Koutsoumpos" <bill_koutsoumpos@hotmail.com>
To: llvmdev@cs.uiuc.edu
Sent: Wednesday, May 7, 2014 8:12:24 AM
Subject: [LLVMdev] loop identification

Hello everybody,

I have developed a pass to identify the loops in a bitcode file. For
files less than 1500 lines of code I am able to identify all the
loops,
however if the file is bigger I cannot find any of the loops.
Is there any limit or something about the LoopInfo?

Are all of these loops in one large function? I don't recall any such limits in LoopInfo. It would be helpful to know what your pass is doing, what version of LLVM you're using, etc.

-Hal

Plus examples of the IR that works and another that doesn't. :wink:

--renato

Hello again,

I just found it. There was an error when I was creating the IR file. It was not properly formatted, cause I had to link multiple IR files into a single one. Now it's working.

Thanks again,
Vasileios