RFC for tree-ssa.c:propage_into_addr

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Sun Jul 25 20:37:00 GMT 2004


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);
  



More information about the Gcc-patches mailing list