re PR rtl-optimization/49452 (comp-goto-2.c regresses in testing)

PR rtl-optimization/49452
	* postreload.c (reload_combine): Invalidate use information when across
	volatile insn.

From-SVN: r178995
This commit is contained in:
Wei Guozhi 2011-09-20 00:57:39 +00:00 committed by Wei Guozhi
parent e31f8881c8
commit 0323000245
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-09-20 Wei Guozhi <carrot@google.com>
PR rtl-optimization/49452
* postreload.c (reload_combine): Invalidate use information when across
volatile insn.
2011-09-19 Maxim Kuvyrkov <maxim@codesourcery.com>
* haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):

View File

@ -1312,7 +1312,8 @@ reload_combine (void)
is and then later disable any optimization that would cross it. */
if (LABEL_P (insn))
last_label_ruid = reload_combine_ruid;
else if (BARRIER_P (insn))
else if (BARRIER_P (insn)
|| (INSN_P (insn) && volatile_insn_p (PATTERN (insn))))
for (r = 0; r < FIRST_PSEUDO_REGISTER; r++)
if (! fixed_regs[r])
reg_state[r].use_index = RELOAD_COMBINE_MAX_USES;