[LLVMdev] getSmallConstantTripCount problem

Bo Wu bwu at cs.wm.edu
Wed Apr 27 12:35:08 PDT 2011

In my pass, I add LoopInfo as a required pass. Then I'd like to print the
constant loop trip count of each loop if it has one. However, every time I
call loop->
getSmallConstantTripCount(), it returns 0, even for a very simple loop:
for(i=0; i<3; ++i) {;}  What's the possible cause of this problem?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110427/e5b8b3ba/attachment.html>

More information about the llvm-dev mailing list