profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile.
authorJan Hubicka <hubicka@ucw.cz>
Tue, 6 Jun 2017 08:03:55 +0000 (10:03 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 6 Jun 2017 08:03:55 +0000 (08:03 +0000)
* profile.c (compute_branch_probabilities): Also initialize
EXIT_BLOCK profile.

From-SVN: r248910

gcc/ChangeLog
gcc/profile.c

index 4a729fe4c7592a58fa3119cdb86840ec1872dbd9..9ffaa0ebc28277acaf1713c27c8c4765d1f78587 100644 (file)
@@ -1,3 +1,8 @@
+2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
+
+       * profile.c (compute_branch_probabilities): Also initialize
+       EXIT_BLOCK profile.
+
 2017-06-06  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/80928
index 219fa8a1b839b0cfe6905d1288020a855da33b4c..d0dc3b835b3580e7c7347d40e01d088bee7bc4e6 100644 (file)
@@ -826,7 +826,7 @@ compute_branch_probabilities (unsigned cfg_checksum, unsigned lineno_checksum)
        }
     }
 
-  FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), NULL, next_bb)
+  FOR_ALL_BB_FN (bb, cfun)
     {
       edge e;
       edge_iterator ei;