[PlaceSafepoints] Entry safepoint location doesn't need to be a terminator
authorPhilip Reames <listmail@philipreames.com>
Tue, 26 May 2015 21:16:42 +0000 (21:16 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 26 May 2015 21:16:42 +0000 (21:16 +0000)
commit90b5eb23197b726608351a5b524d674ae5be7e59
treece45bd3c469cc39d8643abb63a713297c74e924f
parentd59f9706687d61ee6d646ddf07c5658197b48f9b
[PlaceSafepoints] Entry safepoint location doesn't need to be a terminator

Long ago, the poll insertion code assumed that the insertion site was a terminator.  As a result, the entry selection code would split a basic block to ensure it could pass a terminator.  The insertion code was updated quite a while ago - possibly before it ever landed upstream - but the now redundant work was never removed.

While I'm at it, remove a comment which doesn't apply to the upstreamed code.

NFC intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238254 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PlaceSafepoints.cpp