cfgloop.h (just_once_each_iteration_p): Declaration changed.

* cfgloop.h (just_once_each_iteration_p): Declaration changed.
	* cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
	const.

From-SVN: r99849
This commit is contained in:
Zdenek Dvorak 2005-05-17 21:48:50 +02:00 committed by Zdenek Dvorak
parent 8d18c628dd
commit 6c878b231d
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-05-17 Zdenek Dvorak <dvorakz@suse.cz>
* cfgloop.h (just_once_each_iteration_p): Declaration changed.
* cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
const.
2005-05-17 Zdenek Dvorak <dvorakz@suse.cz>
* ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.

View File

@ -287,7 +287,7 @@ extern void force_single_succ_latches (struct loops *);
extern void verify_loop_structure (struct loops *);
/* Loop analysis. */
extern bool just_once_each_iteration_p (struct loop *, basic_block);
extern bool just_once_each_iteration_p (const struct loop *, basic_block);
extern unsigned expected_loop_iterations (const struct loop *);
/* Loop manipulation. */

View File

@ -33,7 +33,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* Checks whether BB is executed exactly once in each LOOP iteration. */
bool
just_once_each_iteration_p (struct loop *loop, basic_block bb)
just_once_each_iteration_p (const struct loop *loop, basic_block bb)
{
/* It must be executed at least once each iteration. */
if (!dominated_by_p (CDI_DOMINATORS, loop->latch, bb))