Commit 60c86d4e by Roger Sayle Committed by Roger Sayle

simplify-rtx.c (simplify_replace_rtx): Allow replacement of matching registers.


	* simplify-rtx.c (simplify_replace_rtx): Allow replacement
	of matching registers.

From-SVN: r54476
parent 9543a9d2
2002-06-10 Roger Sayle <roger@eyesopen.com> 2002-06-10 Roger Sayle <roger@eyesopen.com>
* simplify-rtx.c (simplify_replace_rtx): Allow replacement
of matching registers.
2002-06-10 Roger Sayle <roger@eyesopen.com>
* toplev.c (rest_of_compilation): Disable early if-conversion pass. * toplev.c (rest_of_compilation): Disable early if-conversion pass.
* gcse.c (bypass_conditional_jumps): Fix typo in setcc test. * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
......
...@@ -349,14 +349,19 @@ simplify_replace_rtx (x, old, new) ...@@ -349,14 +349,19 @@ simplify_replace_rtx (x, old, new)
} }
return x; return x;
default: case 'o':
if (GET_CODE (x) == MEM) if (code == MEM)
return return replace_equiv_address_nv (x,
replace_equiv_address_nv (x, simplify_replace_rtx (XEXP (x, 0),
simplify_replace_rtx (XEXP (x, 0), old, new));
old, new));
if (REG_P (x) && REG_P (old) && REGNO (x) == REGNO (old))
return new;
return x; return x;
default:
return x;
} }
return x; return x;
} }
......
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