From b89dfa172249d9d860e3f7061156d37ad47e9d3e Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 30 Jun 2015 12:52:55 +0000 Subject: [PATCH] re PR tree-optimization/66704 (ICE in tree-vectorizer at tree-ssanames.c:457) 2015-06-30 Richard Biener PR tree-optimization/66704 * tree-vect-data-refs.c (vect_setup_realignment): Use make_ssa_name for non-SSA name source. From-SVN: r225182 --- gcc/ChangeLog | 6 ++++++ gcc/tree-vect-data-refs.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4d11ef546cc..59d3052da9d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-06-30 Richard Biener + + PR tree-optimization/66704 + * tree-vect-data-refs.c (vect_setup_realignment): Use + make_ssa_name for non-SSA name source. + 2015-06-30 Jakub Jelinek PR middle-end/66702 diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 66d3ba85b57..4f4cf4ead5b 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -4857,7 +4857,10 @@ vect_setup_realignment (gimple stmt, gimple_stmt_iterator *gsi, ptr = vect_create_data_ref_ptr (stmt, vectype, loop_for_initial_load, NULL_TREE, &init_addr, NULL, &inc, true, &inv_p); - new_temp = copy_ssa_name (ptr); + if (TREE_CODE (ptr) == SSA_NAME) + new_temp = copy_ssa_name (ptr); + else + new_temp = make_ssa_name (TREE_TYPE (ptr)); new_stmt = gimple_build_assign (new_temp, BIT_AND_EXPR, ptr, build_int_cst (TREE_TYPE (ptr), -- 2.30.2