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.


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