title: The use of getSmallConstantTripCount method of Loop in LLVM
body: <p>In my pass, I add <code>LoopInfo</code> 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 called <code>getSmallConstantTripCount</code>, it returns 0, even for a very simple loop: </p>
  
  <pre><code>for(i=0; i&lt;3; ++i) {;}  
  </code></pre>
  
  <p>Any idea why?</p>