[LLVMdev] Alternative of Loop::getTripCount?

Ivan Llopard
Tue, 03 Jul 2012 00:18:40 -0000

Hi Taemin,

On 03/07/2012 01:53, Taemin Kim wrote:
> I found out that Loop::getTripCount method is obsolete in LLVM 3.1
> Is there an alternative?

I use getSmallConstantTripCount() to get loop trip counts using the
ScalarEvolution analysis pass. See
include/llvm/Analysis/ScalarEvolution.h for a detailed explanation.

Ivan

>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>