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)
commit2e8a6219fc0159a6e95845e401ea67b720dc2ece
treeb694af3e98810cea2a51815539030a6b7c807af1
parent0a64776cc0b2d8366cebc7ea00496ebb1e6b462b
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.

llvm-svn: 223193
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
llvm/test/Transforms/GCOVProfiling/return-block.ll [new file with mode: 0644]