re PR tree-optimization/66704 (ICE in tree-vectorizer at tree-ssanames.c:457)
authorRichard Biener <rguenther@suse.de>
Tue, 30 Jun 2015 12:52:55 +0000 (12:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 30 Jun 2015 12:52:55 +0000 (12:52 +0000)
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

gcc/ChangeLog
gcc/tree-vect-data-refs.c

index 4d11ef546ccd353426910705dca01b512677dfb2..59d3052da9d823d5040d2b980df4e02bc76b999b 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/66702
index 66d3ba85b57d8d5dee332c9142da4a2c13c59421..4f4cf4ead5bf4a0a4ab579f08c94dd02d398ccc2 100644 (file)
@@ -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),