Emit the entry block first and the exit block second, then all the blocks in between...
authorNick Lewycky <nicholas@mxc.ca>
Wed, 3 Dec 2014 02:45:01 +0000 (02:45 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 3 Dec 2014 02:45:01 +0000 (02:45 +0000)
commit92d7d4dcd7e81f2cc6e6ac926fd5463ef82933a3
tree6679413a6f95eff7cd2867b237f07bbb3d86a8c1
parent61372ea958220ca041d473c10b67d55d9d9abe7f
Emit the entry block first and the exit block second, then all the blocks in between afterwards. This is what gcc always does, and some out of tree tools depend on that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223193 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/GCOVProfiling.cpp
test/Transforms/GCOVProfiling/return-block.ll [new file with mode: 0644]