tree-ssa-address.c (create_mem_ref): Put the symbol reference into the base register if possible.
2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com> * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the base register if possible. From-SVN: r104446
This commit is contained in:
parent
a417b48268
commit
39278c14cc
|
@ -1,3 +1,8 @@
|
|||
2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
|
||||
|
||||
* tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
|
||||
base register if possible.
|
||||
|
||||
2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
|
||||
|
||||
PR tree-optimization/18463
|
||||
|
|
|
@ -525,10 +525,18 @@ create_mem_ref (block_stmt_iterator *bsi, tree type,
|
|||
|
||||
/* Add the symbol to base, eventually forcing it to register. */
|
||||
if (parts.base)
|
||||
{
|
||||
if (parts.index)
|
||||
parts.base = force_gimple_operand_bsi (bsi,
|
||||
build2 (PLUS_EXPR, addr_type,
|
||||
parts.base, tmp),
|
||||
true, NULL_TREE);
|
||||
else
|
||||
{
|
||||
parts.index = parts.base;
|
||||
parts.base = tmp;
|
||||
}
|
||||
}
|
||||
else
|
||||
parts.base = tmp;
|
||||
parts.symbol = NULL_TREE;
|
||||
|
|
Loading…
Reference in New Issue