gcc/ChangeLog:
* ipa-pure-const.c (propagate_pure_const): Remove redundant check;
fix call of ipa_make_function_const and ipa_make_function_pure.
enum pure_const_state_e edge_state = IPA_CONST;
bool edge_looping = false;
- if (e->recursive_p ())
- looping = true;
-
if (e->recursive_p ())
looping = true;
switch (this_state)
{
case IPA_CONST:
- remove_p |= ipa_make_function_const (node, looping, false);
+ remove_p |= ipa_make_function_const (node, this_looping, false);
break;
case IPA_PURE:
- remove_p |= ipa_make_function_pure (node, looping, false);
+ remove_p |= ipa_make_function_pure (node, this_looping, false);
break;
default: