[LLVMdev] Loop depth concept

Chris Lattner sabre at nondot.org
Fri Mar 14 15:00:07 PDT 2008


On Fri, 14 Mar 2008, Wojciech Matyjewicz wrote:
> Starting numbering from 0 in both cases will also be consistent, but in
> other way;) "depth" may be defined as the number of loops a BB/loop is
> contained in.
>
> What do you think?

Starting at 1 is consistent with the idea of treating the body of the 
containing function as loop depth 0.  Logically you can consider the 
function to be a "loop" which executes once per invocation.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list