* tree-ssa.c (propagate_into_addr): Properly test for LHR.

From-SVN: r86934
This commit is contained in:
Richard Kenner 2004-09-01 22:06:20 +00:00 committed by Richard Kenner
parent 78ad8fbec4
commit 0705d60230
2 changed files with 5 additions and 3 deletions

View 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.

View 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