From b2ab2cf4d194d3859276be7226fa05cdfb8c31a7 Mon Sep 17 00:00:00 2001 From: Revital Eres Date: Mon, 16 May 2011 06:11:46 +0000 Subject: [PATCH] Fix condition in doloop_register_get From-SVN: r173786 --- gcc/ChangeLog | 5 +++++ gcc/modulo-sched.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf183347c40..0ef7fb5ac6d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-16 Revital Eres + + * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P + first. + 2011-05-15 Uros Bizjak * config/i386/i386.md (floating point move splitters): Fix diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 4937a56a7c4..327c09aefed 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -316,7 +316,7 @@ doloop_register_get (rtx head ATTRIBUTE_UNUSED, rtx tail ATTRIBUTE_UNUSED) : prev_nondebug_insn (tail)); for (insn = head; insn != first_insn_not_to_check; insn = NEXT_INSN (insn)) - if (reg_mentioned_p (reg, insn) && !DEBUG_INSN_P (insn)) + if (!DEBUG_INSN_P (insn) && reg_mentioned_p (reg, insn)) { if (dump_file) { -- 2.30.2