diff mbox

[3/4] Fix debug_insn problem in hw-doloop

Message ID 4E6FD30D.3010202@codesourcery.com
State New
Headers show

Commit Message

Bernd Schmidt Sept. 13, 2011, 10:02 p.m. UTC
This fixes an oversight that led to a compare-debug failure in the
testsuite with the other changes applied. We really don't care if a
DEBUG_INSN uses the iteration register or not.

Will commit soon as obvious.


Bernd
* hw-doloop.c (scan_loop): Compute register usage only for non-debug
	insns.
diff mbox

Patch

Index: hw-doloop.c
===================================================================
--- hw-doloop.c	(revision 178779)
+++ hw-doloop.c	(working copy)
@@ -123,7 +123,7 @@  scan_loop (hwloop_info loop)
 	  df_ref *def_rec;
 	  HARD_REG_SET set_this_insn;
 
-	  if (!INSN_P (insn))
+	  if (!NONDEBUG_INSN_P (insn))
 	    continue;
 
 	  if (recog_memoized (insn) < 0