diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-18 22:09:19 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-05-18 22:09:19 +0000 |
commit | 3a16ebc283c2c39139da9664b1992573c814604e (patch) | |
tree | 958f7175cef5f976bba4563cd8c34d6659969e2d /gcc/haifa-sched.c | |
parent | d3bd87c3760f14f27c84634420b10713acc95653 (diff) | |
download | gcc-3a16ebc283c2c39139da9664b1992573c814604e.tar.gz |
2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/43332
* haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159545 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 0dd220d7302..8bea5e3811e 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -1586,7 +1586,8 @@ setup_insn_max_reg_pressure (rtx after, bool update_p) 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)) { |