[LLVMdev] Loop depth concept
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.
More information about the llvm-dev