public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2350] tree-optimization/101467 - fix make_temp_ssa_name usage
@ 2021-07-16 10:01 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2021-07-16 10:01 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:df0d7486ec9bca8a77ca106d9fbb60f819dd9cec
commit r12-2350-gdf0d7486ec9bca8a77ca106d9fbb60f819dd9cec
Author: Richard Biener <rguenther@suse.de>
Date: Fri Jul 16 11:17:37 2021 +0200
tree-optimization/101467 - fix make_temp_ssa_name usage
My previous change to vect_gen_while introduced paths which call
make_temp_ssa_name with a NULL name which isn't supported. The
following fixes that.
2021-07-16 Richard Biener <rguenther@suse.de>
PR tree-optimization/101467
* tree-vect-stmts.c (vect_gen_while): Properly guard
make_temp_ssa_name usage.
Diff:
---
gcc/tree-vect-stmts.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index ec82acb8db9..0ef46962618 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -11999,7 +11999,11 @@ vect_gen_while (gimple_seq *seq, tree mask_type, tree start_index,
gcall *call = gimple_build_call_internal (IFN_WHILE_ULT, 3,
start_index, end_index,
build_zero_cst (mask_type));
- tree tmp = make_temp_ssa_name (mask_type, NULL, name);
+ tree tmp;
+ if (name)
+ tmp = make_temp_ssa_name (mask_type, NULL, name);
+ else
+ tmp = make_ssa_name (mask_type);
gimple_call_set_lhs (call, tmp);
gimple_seq_add_stmt (seq, call);
return tmp;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-16 10:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-16 10:01 [gcc r12-2350] tree-optimization/101467 - fix make_temp_ssa_name usage Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).