[LLVMdev] Alternative of Loop::getTripCount?

Ivan Llopard ivanllopard at gmail.com
Mon Jul 2 17:18:40 PDT 2012


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
>




More information about the llvm-dev mailing list