From 9baba81be56e46677dbe5c558368fd023d45c2a9 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Mon, 12 Jul 2004 21:31:16 +0200 Subject: cfgloop.h (struct loop): Add nb_iterations field. * cfgloop.h (struct loop): Add nb_iterations field. (current_loops): Declare. * tree-chrec.c (chrec_not_analyzed_yet, chrec_dont_know, chrec_known, count_ev_in_wider_type, chrec_contains_symbols_defined_in_loop): Remove the temporary hooks. * tree-flow-inline.h (loop_containing_stmt): New function. * tree-scalar-evolution.c: Add implementation. * tree-scalar-evolution.h: Add declarations. From-SVN: r84573 --- gcc/cfgloop.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gcc/cfgloop.h') diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index 01b8d64..8ccffd3 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -176,6 +176,13 @@ struct loop loops nested inside it. */ int exit_count; + /* The probable number of times the loop is executed at runtime. + This is an INTEGER_CST or an expression containing symbolic + names. Don't access this field directly: + number_of_iterations_in_loop computes and caches the computed + information in this field. */ + tree nb_iterations; + /* Upper bound on number of iterations of a loop. */ struct nb_iter_bound *bounds; }; @@ -227,6 +234,10 @@ struct loops int state; }; +/* The loop tree currently optimized. */ + +extern struct loops *current_loops; + /* Flags for loop discovery. */ #define LOOP_TREE 1 /* Build loop hierarchy tree. */ -- cgit v1.1