tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
authorRichard Guenther <rguenther@suse.de>
Fri, 14 Jan 2011 14:58:01 +0000 (14:58 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 14 Jan 2011 14:58:01 +0000 (14:58 +0000)
2011-01-14  Richard Guenther  <rguenther@suse.de>

* tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.

From-SVN: r168787

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index 83e1fbdd8bcc93b8f65f82322c253afc85384bdb..00a7b11f1802f80c5ed3fd32297c9b8fae28f540 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-14  Richard Guenther  <rguenther@suse.de>
+
+       * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
+
 2011-01-14  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/47280
index d3a54c65beb6a2b25ac13bf4384917a097df1670..a49f14bba138d5c5e099b11b4cc2ead12fffe727 100644 (file)
@@ -416,7 +416,8 @@ new_var_info (tree t, const char *name)
     ret->is_global_var = (is_global_var (t)
                          /* We have to treat even local register variables
                             as escape points.  */
-                         || (TREE_CODE (t) == VAR_DECL && DECL_REGISTER (t)));
+                         || (TREE_CODE (t) == VAR_DECL
+                             && DECL_HARD_REGISTER (t)));
   ret->solution = BITMAP_ALLOC (&pta_obstack);
   ret->oldsolution = BITMAP_ALLOC (&oldpta_obstack);
   ret->next = NULL;