Commit 9d5cee3d by Jan Hubicka Committed by Jan Hubicka

re PR rtl-optimization/34408 (Invalid RTL sharing with -fsee and inline functions)


	PR rtl-optimization/34408
	* see.c (see_def_extension_not_merged): Copy subreg so we don't have invalid sharing.

From-SVN: r132440
parent 8723e2fe
2008-02-19 Jan Hubicka <jh@suse.cz>
PR rtl-optimization/34408
* see.c (see_def_extension_not_merged): Copy subreg so we don't have invalid sharing.
2008-02-19 Jan Hubicka <jh@suse.cz>
PR middle-end/28779
* tree-inline.c (estimate_num_insns_1): Fix counting of cost of call_expr.
......
......@@ -2508,7 +2508,7 @@ see_def_extension_not_merged (struct see_ref_s *curr_ref_s, rtx def_se)
d.to = new_pseudo_reg;
note_uses (&PATTERN (ref_copy), see_replace_src, &d);
/* Step b: Replace every instance of dest_reg with the subreg. */
ref_copy = replace_rtx (ref_copy, dest_reg, subreg);
ref_copy = replace_rtx (ref_copy, dest_reg, copy_rtx (subreg));
/* Step c: Replace every use of the new pseudo register back to
dest_real_reg. */
......
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