Fix a bug in gcov instrumentation introduced by r195513. <rdar://15930350>
authorBob Wilson <bob.wilson@apple.com>
Fri, 31 Jan 2014 05:24:01 +0000 (05:24 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 31 Jan 2014 05:24:01 +0000 (05:24 +0000)
commit8498c08404f00eed029018139478ae462a424036
tree67047dc4ddfe1878631428ebb7d6c5e9df8b9eca
parent9026e07000b4061e69f987bcbbecffe72d245b9f
Fix a bug in gcov instrumentation introduced by r195513. <rdar://15930350>

The entry block of a function starts with all the static allocas. The change
in r195513 splits the block before those allocas, which has the effect of
turning them into dynamic allocas. That breaks all sorts of things. Change to
split after the initial allocas, and also add a comment explaining why the
block is split.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200515 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/GCOVProfiling.cpp