[Bug tree-optimization/38513] Only postreload will remove a no-op store
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Dec 29 19:39:00 GMT 2008
------- Comment #6 from pinskia at gcc dot gnu dot org 2008-12-29 19:38 -------
(In reply to comment #4)
> The idea is simple - delete redundant stores whose RHS have the same
> value-number as the LHS.
Which is basically what postreload CSE does really:
if (!count && reload_cse_noop_set_p (body))
{
rtx value = SET_DEST (body);
if (REG_P (value)
&& ! REG_FUNCTION_VALUE_P (value))
value = 0;
delete_insn_and_edges (insn);
return;
}
:)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38513
More information about the Gcc-bugs
mailing list