Hi, In the GCC Internals documentation the loop depth is documented incorrectly. From git commit 9e3536f4f it is accessed through a function, not a field.
Please install this patch to reflect this. Best, Nicklas 2017-01-10 Nicklas Bo Jensen <nbjen...@gmail.com> * doc/loop.texi (Loop Analysis and Representation): Document loop_depth function. index 8920002..8c7a62f 100644 --- a/gcc/doc/loop.texi +++ b/gcc/doc/loop.texi @@ -173,8 +173,6 @@ loop structure (that are kept up-to-date at all times) are: loop. @item @code{num_nodes}: Number of basic blocks in the loop (including the basic blocks of the sub-loops). -@item @code{depth}: The depth of the loop in the loops tree, i.e., the -number of super-loops of the loop. @item @code{outer}, @code{inner}, @code{next}: The super-loop, the first sub-loop, and the sibling of the loop in the loops tree. @end itemize @@ -186,6 +184,8 @@ should not be accessed directly. The most important functions to query loop structures are: @itemize +@item @code{loop_depth}: The depth of the loop in the loops tree, i.e., the +number of super-loops of the loop. @item @code{flow_loops_dump}: Dumps the information about loops to a file. @item @code{verify_loop_structure}: Checks consistency of the loop