* tree-ssa.c (propagate_into_addr): Properly test for LHR.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Wed, 1 Sep 2004 22:06:20 +0000 (22:06 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 1 Sep 2004 22:06:20 +0000 (18:06 -0400)
From-SVN: r86934

gcc/ChangeLog
gcc/tree-ssa.c

index 653d13779640fc04e1418899b2ad47f8164ee367..1d0ebc96be0839cc1758145be2cc41dd9209adf0 100644 (file)
@@ -1,5 +1,7 @@
 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * tree-ssa.c (propagate_into_addr): Properly test for LHR.
+
        * doc/c-tree.texi: Document new operands for ARRAY_REF and
        COMPONENT_REF.
 
index 46068e5c99e63f237c9724e23093eb5af48f79c3..13104fdf81872971720b71594905ced7cd028924 100644 (file)
@@ -871,9 +871,9 @@ propagate_into_addr (tree stmt, tree var, tree *x, tree repl)
     return;
   addr_var = TREE_OPERAND (repl, 0);
 
-  while (TREE_CODE (*x) == ARRAY_REF
-        || TREE_CODE (*x) == COMPONENT_REF
-        || TREE_CODE (*x) == BIT_FIELD_REF)
+  while (handled_component_p (*x)
+        || TREE_CODE (*x) == REALPART_EXPR
+        || TREE_CODE (*x) == IMAGPART_EXPR)
     x = &TREE_OPERAND (*x, 0);
 
   if (TREE_CODE (*x) != INDIRECT_REF