diff options
author | Richard Biener <rguenther@suse.de> | 2015-06-30 12:52:55 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-06-30 12:52:55 +0000 |
commit | b89dfa172249d9d860e3f7061156d37ad47e9d3e (patch) | |
tree | 958dcef4a22582e3f5aad625237f196b29d3cd4f /gcc/tree-vect-data-refs.c | |
parent | f8e89d9f4de143d03bc7994709bdec5766d8ad91 (diff) | |
download | gcc-b89dfa172249d9d860e3f7061156d37ad47e9d3e.zip gcc-b89dfa172249d9d860e3f7061156d37ad47e9d3e.tar.gz gcc-b89dfa172249d9d860e3f7061156d37ad47e9d3e.tar.bz2 |
re PR tree-optimization/66704 (ICE in tree-vectorizer at tree-ssanames.c:457)
2015-06-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/66704
* tree-vect-data-refs.c (vect_setup_realignment): Use
make_ssa_name for non-SSA name source.
From-SVN: r225182
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
-rw-r--r-- | gcc/tree-vect-data-refs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 66d3ba8..4f4cf4e 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), |