Displaying 2 results from an estimated 2 matches for "d9b3cb3c".
2008 Apr 26
0
[LLVMdev] Getting the trip count of a loop
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
2008 Apr 26
2
[LLVMdev] Getting the trip count of a loop
Hi,
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()
However I am always getting NULL for TripCountValue (confirmed through gdb).
I am running this pass after the canonicalization of induction variables:
opt --debug-pass=Structure -stats -indvars -loop-rotate -my-loop-pass <
main.bc >