This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFC for tree-ssa.c:propage_into_addr
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 25 Jul 04 11:00:36 EDT
- Subject: RFC for tree-ssa.c:propage_into_addr
Should this be using handled_component_p like below? Should
REALPART_EXPR and IMAGPART_EXPR be included too (I hope to move them
into handled_component_p, but not yet...)?
2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* tree-ssa.c (propagate_into_addr): Use handled_component_p.
*** tree-ssa.c 24 Jul 2004 01:05:44 -0000 2.23
--- tree-ssa.c 25 Jul 2004 13:28:13 -0000
*************** propagate_into_addr (tree stmt, tree var
*** 925,931 ****
addr_var = TREE_OPERAND (repl, 0);
! while (TREE_CODE (*x) == ARRAY_REF
! || TREE_CODE (*x) == COMPONENT_REF
! || TREE_CODE (*x) == BIT_FIELD_REF)
x = &TREE_OPERAND (*x, 0);
--- 925,929 ----
addr_var = TREE_OPERAND (repl, 0);
! while (handled_component_p (*x))
x = &TREE_OPERAND (*x, 0);