Commit 4a050cc2 by Jeffrey A Law Committed by Jeff Law

stmt.c (stmt_loop_nest_empty): New function.

        * stmt.c (stmt_loop_nest_empty): New function.
        * tree.h (stmt_loop_nest_empty): Declare it.

From-SVN: r24844
parent 09554da9
Sun Jan 24 08:07:59 1999 Jeffrey A Law (law@cygnus.com) Sun Jan 24 08:07:59 1999 Jeffrey A Law (law@cygnus.com)
* stmt.c (stmt_loop_nest_empty): New function.
* tree.h (stmt_loop_nest_empty): Declare it.
* rtl.def (CALL_PLACEHOLDER): New rtx code. * rtl.def (CALL_PLACEHOLDER): New rtx code.
Sun Jan 24 21:24:43 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz> Sun Jan 24 21:24:43 1999 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
......
...@@ -2345,6 +2345,14 @@ expand_exit_loop_if_false (whichloop, cond) ...@@ -2345,6 +2345,14 @@ expand_exit_loop_if_false (whichloop, cond)
return 1; return 1;
} }
/* Return nonzero if the loop nest is empty. Else return zero. */
int
stmt_loop_nest_empty ()
{
return (loop_stack == NULL);
}
/* Return non-zero if we should preserve sub-expressions as separate /* Return non-zero if we should preserve sub-expressions as separate
pseudos. We never do so if we aren't optimizing. We always do so pseudos. We never do so if we aren't optimizing. We always do so
if -fexpensive-optimizations. if -fexpensive-optimizations.
......
...@@ -1952,6 +1952,7 @@ extern int pushcase_range PROTO((tree, tree, ...@@ -1952,6 +1952,7 @@ extern int pushcase_range PROTO((tree, tree,
tree (*) (tree, tree), tree (*) (tree, tree),
tree, tree *)); tree, tree *));
extern void using_eh_for_cleanups PROTO((void)); extern void using_eh_for_cleanups PROTO((void));
extern int stmt_loop_nest_empty PROTO((void));
/* In fold-const.c */ /* In fold-const.c */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment