Commit b41310e2 by Steve Ellcey Committed by Steve Ellcey

* regrename.c (do_replace): Copy REG_POINTER value to new reg.

From-SVN: r140616
parent 8569b2d0
2008-08-23 Steve Ellcey <sje@cup.hp.com>
* regrename.c (do_replace): Copy REG_POINTER value to new reg.
2008-09-23 Richard Sandiford <rdsandiford@googlemail.com>
* alias.c (find_base_value): Use FIND_BASE_TERM.
......
......@@ -357,11 +357,13 @@ do_replace (struct du_chain *chain, int reg)
{
unsigned int regno = ORIGINAL_REGNO (*chain->loc);
struct reg_attrs * attr = REG_ATTRS (*chain->loc);
int reg_ptr = REG_POINTER (*chain->loc);
*chain->loc = gen_raw_REG (GET_MODE (*chain->loc), reg);
if (regno >= FIRST_PSEUDO_REGISTER)
ORIGINAL_REGNO (*chain->loc) = regno;
REG_ATTRS (*chain->loc) = attr;
REG_POINTER (*chain->loc) = reg_ptr;
df_insn_rescan (chain->insn);
chain = chain->next_use;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment