aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2024-09-11 23:53:21 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2024-09-11 23:53:51 +0200
commitf910b02919036647a3f096265cda19358dded628 (patch)
treef6ffc8febe17cef7e9743fe779ee0b82aa7ffb0b /gcc
parent323291c29c77e3214f4850129bb8a3d0d8da6a45 (diff)
downloadgcc-f910b02919036647a3f096265cda19358dded628.zip
gcc-f910b02919036647a3f096265cda19358dded628.tar.gz
gcc-f910b02919036647a3f096265cda19358dded628.tar.bz2
ipa-cp: One more use of ipa_vr_supported_type_p
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ipa-cp.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ipa-cp.cc b/gcc/ipa-cp.cc
index a1033b8..fa7bd6a 100644
--- a/gcc/ipa-cp.cc
+++ b/gcc/ipa-cp.cc
@@ -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)