[LLVMdev] Getting the trip count of a loop

Nick Lewycky nicholas at mxc.ca
Sat Apr 26 11:15:50 PDT 2008


Prakash Prabhu wrote:
> I am trying to add a new loop pass in which I making a call to get the 
> trip count of the loop using
> 
> Value *TripCountValue = L->getTripCount()

That should work.

Could you file a bug and attach the bytecode after 'opt -indvars 
-loop-rotate'? I would need that to determine why LoopInfo::getTripCount 
isn't returning any value.

Nick



More information about the llvm-dev mailing list