Commit d241cd48 by Jan Hubicka Committed by Jan Hubicka

* cse.c (cse_insn): Avoid invalid sharing on trial replacement.

From-SVN: r126481
parent f967586f
2007-07-09 Jan HUbicka <jh@suse.cz>
* cse.c (cse_insn): Avoid invalid sharing on trial replacement.
2007-07-09 Richard Guenther <rguenther@suse.de> 2007-07-09 Richard Guenther <rguenther@suse.de>
* c-decl.c (start_function): Do not promote return type. * c-decl.c (start_function): Do not promote return type.
......
...@@ -4830,7 +4830,8 @@ cse_insn (rtx insn, rtx libcall_insn) ...@@ -4830,7 +4830,8 @@ cse_insn (rtx insn, rtx libcall_insn)
; ;
/* Look for a substitution that makes a valid insn. */ /* Look for a substitution that makes a valid insn. */
else if (validate_change (insn, &SET_SRC (sets[i].rtl), trial, 0)) else if (validate_unshare_change
(insn, &SET_SRC (sets[i].rtl), trial, 0))
{ {
rtx new = canon_reg (SET_SRC (sets[i].rtl), insn); rtx new = canon_reg (SET_SRC (sets[i].rtl), insn);
......
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