Commit e0e349f3 by Jan Hubicka Committed by Jan Hubicka

* sched-int.h (sd_iterator_cond): Manually tail recurse.

From-SVN: r210895
parent 06e3da34
2014-05-23 Jan Hubicka <hubicka@ucw.cz>
* sched-int.h (sd_iterator_cond): Manually tail recurse.
2014-05-23 Segher Boessenkool <segher@kernel.crashing.org> 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/440.md (ppc440-integer): Include shift without * config/rs6000/440.md (ppc440-integer): Include shift without
......
...@@ -1550,6 +1550,8 @@ sd_iterator_start (rtx insn, sd_list_types_def types) ...@@ -1550,6 +1550,8 @@ sd_iterator_start (rtx insn, sd_list_types_def types)
static inline bool static inline bool
sd_iterator_cond (sd_iterator_def *it_ptr, dep_t *dep_ptr) sd_iterator_cond (sd_iterator_def *it_ptr, dep_t *dep_ptr)
{ {
while (true)
{
dep_link_t link = *it_ptr->linkp; dep_link_t link = *it_ptr->linkp;
if (link != NULL) if (link != NULL)
...@@ -1572,12 +1574,13 @@ sd_iterator_cond (sd_iterator_def *it_ptr, dep_t *dep_ptr) ...@@ -1572,12 +1574,13 @@ sd_iterator_cond (sd_iterator_def *it_ptr, dep_t *dep_ptr)
it_ptr->linkp = &DEPS_LIST_FIRST (list); it_ptr->linkp = &DEPS_LIST_FIRST (list);
if (list) if (list)
return sd_iterator_cond (it_ptr, dep_ptr); continue;
} }
*dep_ptr = NULL; *dep_ptr = NULL;
return false; return false;
} }
}
} }
/* Advance iterator. */ /* Advance iterator. */
......
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