]> gcc.gnu.org Git - gcc.git/commitdiff
ipa-cp: One more use of ipa_vr_supported_type_p
authorMartin Jambor <mjambor@suse.cz>
Wed, 11 Sep 2024 21:53:21 +0000 (23:53 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 11 Sep 2024 21:53:51 +0000 (23:53 +0200)
Since we have the predicate, this patch converts one more check for
essentially the same thing into its use.

2024-09-11  Martin Jambor  <mjambor@suse.cz>

* ipa-cp.cc (propagate_vr_across_jump_function): Use
ipa_vr_supported_type_p instead of explicit check for integral and
pointer types.

gcc/ipa-cp.cc

index a1033b81aefcb95fe760272fb6f782386bc88947..fa7bd6a15da7fe5392a705fb921b1cc3411c7281 100644 (file)
@@ -2519,8 +2519,7 @@ propagate_vr_across_jump_function (cgraph_edge *cs, ipa_jump_func *jfunc,
     return false;
 
   if (!param_type
-      || (!INTEGRAL_TYPE_P (param_type)
-         && !POINTER_TYPE_P (param_type)))
+      || !ipa_vr_supported_type_p (param_type))
     return dest_lat->set_to_bottom ();
 
   if (jfunc->type == IPA_JF_PASS_THROUGH)
This page took 0.096007 seconds and 5 git commands to generate.