aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-pre.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-07-16 13:26:20 +0200
committerRichard Biener <rguenther@suse.de>2021-07-19 09:15:18 +0200
commit3ce20b6be543824a07c3367253188d754b58667e (patch)
tree62caf65c46628be85e43d4a5eb401ecd21c02459 /gcc/tree-ssa-pre.c
parent4a21a8c34a707e88f450375e3c7d593be75162f4 (diff)
downloadgcc-3ce20b6be543824a07c3367253188d754b58667e.zip
gcc-3ce20b6be543824a07c3367253188d754b58667e.tar.gz
gcc-3ce20b6be543824a07c3367253188d754b58667e.tar.bz2
Remove last gimple_expr_type uses
This removes the last uses of gimple_expr_type. 2021-07-16 Richard Biener <rguenther@suse.de> * tree-ssa-sccvn.c (vn_reference_eq): Handle NULL vr->type. (ao_ref_init_from_vn_reference): Likewise. (fully_constant_reference): Likewise. (vn_reference_lookup_call): Do not set vr->type to random values. * tree-ssa-pre.c (compute_avail): Do not try to PRE calls without a value. * tree-vect-generic.c (expand_vector_piecewise): Pass in whether we expanded parallel. (expand_vector_parallel): Adjust. (expand_vector_addition): Likewise. (expand_vector_comparison): Likewise. (expand_vector_operation): Likewise. (expand_vector_scalar_condition): Likewise. (expand_vector_conversion): Likewise.
Diffstat (limited to 'gcc/tree-ssa-pre.c')
-rw-r--r--gcc/tree-ssa-pre.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index aa5244e..d2a7395 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -4023,7 +4023,8 @@ compute_avail (function *fun)
continue;
vn_reference_lookup_call (as_a <gcall *> (stmt), &ref, &ref1);
- if (!ref)
+ /* There is no point to PRE a call without a value. */
+ if (!ref || !ref->result)
continue;
/* If the value of the call is not invalidated in