diff options
author | Richard Biener <rguenther@suse.de> | 2019-11-18 12:41:11 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2019-11-18 12:41:11 +0000 |
commit | 5be106b86006e00c80bf846a172b2b69b40d10ef (patch) | |
tree | 8b459b41b4cc1967d62c341a286cd10c4ab66122 /gcc/tree-vect-loop.c | |
parent | 3d3a96a26eff2367d6573b30683c3c2945f443eb (diff) | |
download | gcc-5be106b86006e00c80bf846a172b2b69b40d10ef.zip gcc-5be106b86006e00c80bf846a172b2b69b40d10ef.tar.gz gcc-5be106b86006e00c80bf846a172b2b69b40d10ef.tar.bz2 |
re PR tree-optimization/92558 (Miscompare of 554.roms_r with -Ofast -march=znver2 -flto since r278289)
2019-11-18 Richard Biener <rguenther@suse.de>
PR tree-optimization/92558
* tree-vect-loop.c (vect_create_epilog_for_reduction): When
reducting the width of a reduction vector def update new_phis.
* gcc.dg/vect/pr92558.c: New testcase.
From-SVN: r278400
Diffstat (limited to 'gcc/tree-vect-loop.c')
-rw-r--r-- | gcc/tree-vect-loop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-vect-loop.c b/gcc/tree-vect-loop.c index 7a58dfc..02e6bfb 100644 --- a/gcc/tree-vect-loop.c +++ b/gcc/tree-vect-loop.c @@ -5198,6 +5198,7 @@ vect_create_epilog_for_reduction (stmt_vec_info stmt_info, new_temp = make_ssa_name (vectype1); epilog_stmt = gimple_build_assign (new_temp, code, dst1, dst2); gsi_insert_before (&exit_gsi, epilog_stmt, GSI_SAME_STMT); + new_phis[0] = epilog_stmt; } if (reduce_with_shift && !slp_reduc) |