summaryrefslogtreecommitdiff
path: root/gcc/loop-invariant.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-20 13:29:08 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-20 13:29:08 +0000
commitc6a55b9702535fdb235885a1e5fa0b1bb200f86a (patch)
tree41fd57790932a3036655aea364c231276401030b /gcc/loop-invariant.c
parentb612c537ac152fc4f2bbc369aae81aa736178d1e (diff)
downloadgcc-c6a55b9702535fdb235885a1e5fa0b1bb200f86a.tar.gz
PR debug/41340
* loop-invariant.c (calculate_loop_reg_pressure): Don't count regs referenced just in DEBUG_INSNs. * gcc.dg/pr41340.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153011 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r--gcc/loop-invariant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c
index 7fb6cf05fd4..8cbfdb30a92 100644
--- a/gcc/loop-invariant.c
+++ b/gcc/loop-invariant.c
@@ -1785,7 +1785,7 @@ calculate_loop_reg_pressure (void)
FOR_BB_INSNS (bb, insn)
{
- if (! INSN_P (insn))
+ if (! NONDEBUG_INSN_P (insn))
continue;
mark_ref_regs (PATTERN (insn));