Patchwork [4.5] Backport fix for PR rtl-optimization/43332

login
register
mail settings
Submitter Eric Botcazou
Date June 27, 2010, 8:23 a.m.
Message ID <201006271023.35243.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/57084/
State New
Headers show

Comments

Eric Botcazou - June 27, 2010, 8:23 a.m.
Tested on i586-suse-linux, applied on the branch.


2010-06-27  Eric Botcazou  <ebotcazou@adacore.com>

	Backport from mainline
	2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>

	PR rtl-optimization/43332
	* haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.

Patch

Index: haifa-sched.c
===================================================================
--- haifa-sched.c	(revision 159544)
+++ haifa-sched.c	(revision 159545)
@@ -1586,7 +1586,8 @@  setup_insn_max_reg_pressure (rtx after,
     max_reg_pressure[ira_reg_class_cover[i]]
       = curr_reg_pressure[ira_reg_class_cover[i]];
   for (insn = NEXT_INSN (after);
-       insn != NULL_RTX && BLOCK_FOR_INSN (insn) == BLOCK_FOR_INSN (after);
+       insn != NULL_RTX && ! BARRIER_P (insn)
+	 && BLOCK_FOR_INSN (insn) == BLOCK_FOR_INSN (after);
        insn = NEXT_INSN (insn))
     if (NONDEBUG_INSN_P (insn))
       {