]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
df-problems.c (df_note_bb_compute): Do not take note of debug uses for whose REGs...
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 13 Apr 2012 15:56:07 +0000 (15:56 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 13 Apr 2012 15:56:07 +0000 (15:56 +0000)
* df-problems.c (df_note_bb_compute): Do not take note of
debug uses for whose REGs we won't emit DEAD or UNUSED notes.

From-SVN: r186421

gcc/ChangeLog
gcc/df-problems.c

index 1559b9af7d577f92699a6fdab29d7e0726f6399d..c099a2c54e949aa83a9ae24f0111486f49cab6cd 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
+
+       * df-problems.c (df_note_bb_compute): Do not take note of
+       debug uses for whose REGs we won't emit DEAD or UNUSED notes.
+
 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
 
        PR debug/51570
index c9fc91bd376d867fbb03512a242f15c0bd5a7bd7..6912e11e498c162fe3de6077b6466e40bf214199 100644 (file)
@@ -3453,7 +3453,12 @@ df_note_bb_compute (unsigned int bb_index,
                {
                  if (debug_insn > 0)
                    {
-                     dead_debug_add (&debug, use, uregno);
+                     /* We won't add REG_UNUSED or REG_DEAD notes for
+                        these, so we don't have to mess with them in
+                        debug insns either.  */
+                     if (!bitmap_bit_p (artificial_uses, uregno)
+                         && !df_ignore_stack_reg (uregno))
+                       dead_debug_add (&debug, use, uregno);
                      continue;
                    }
                  break;