tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in the same loop.
authorDehao Chen <dehao@google.com>
Tue, 3 Jun 2014 21:36:05 +0000 (21:36 +0000)
committerDehao Chen <dehao@gcc.gnu.org>
Tue, 3 Jun 2014 21:36:05 +0000 (21:36 +0000)
commit47e78f984ef151c621587a4dcdebc48dd577a36a
tree830ac6e9ad7a9571a908b35acefb2b113b8183f3
parenteb7404d46ae0ac7ec733e7b3850a00f11df2d4b7
tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in the same loop.

2014-06-03  Dehao Chen  <dehao@google.com>

* tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
the same loop.
* gcc.dg/tree-prof/merge_block.c: New test.

From-SVN: r211202
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/merge_block.c [new file with mode: 0644]
gcc/tree-cfg.c