diff options
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index af1cc0fd787..8ad6ddb3fec 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -281,15 +281,17 @@ ipcp_lattice_from_jfunc (struct ipa_node_params *info, struct ipcp_lattice *lat, lat->type = IPA_BOTTOM; } -/* True when OLD and NEW values are not the same. */ +/* True when OLD_LAT and NEW_LAT values are not the same. */ + static bool -ipcp_lattice_changed (struct ipcp_lattice *old, struct ipcp_lattice *new) +ipcp_lattice_changed (struct ipcp_lattice *old_lat, + struct ipcp_lattice *new_lat) { - if (old->type == new->type) + if (old_lat->type == new_lat->type) { - if (!ipcp_lat_is_const (old)) + if (!ipcp_lat_is_const (old_lat)) return false; - if (ipcp_lats_are_equal (old, new)) + if (ipcp_lats_are_equal (old_lat, new_lat)) return false; } return true; |