From: Richard Biener Date: Tue, 30 Jun 2015 12:52:55 +0000 (+0000) Subject: re PR tree-optimization/66704 (ICE in tree-vectorizer at tree-ssanames.c:457) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b89dfa172249d9d860e3f7061156d37ad47e9d3e;p=gcc.git 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 --- 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),