OSDN Git Service

2010-11-26 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 2010 09:49:47 +0000 (09:49 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Nov 2010 09:49:47 +0000 (09:49 +0000)
PR tree-optimization/46528
PR debug/46338
* profile.c (branch_prob): Do not split blocks based on locations
from debug statements.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167171 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/profile.c

index ff8fc9a..44883d0 100644 (file)
@@ -1,3 +1,10 @@
+2010-11-26  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/46528
+       PR debug/46338
+       * profile.c (branch_prob): Do not split blocks based on locations
+       from debug statements.
+
 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/46647
index ffcd802..b8a43de 100644 (file)
@@ -940,7 +940,8 @@ branch_prob (void)
          for (gsi = gsi_last_bb (bb); !gsi_end_p (gsi); gsi_prev (&gsi))
            {
              last = gsi_stmt (gsi);
-             if (gimple_has_location (last))
+             if (!is_gimple_debug (last)
+                 && gimple_has_location (last))
                break;
            }