OSDN Git Service

[RewriteStatepointsForGC] Fix a latent bug in normalization for invoke statepoint...
authorPhilip Reames <listmail@philipreames.com>
Mon, 13 Apr 2015 18:07:21 +0000 (18:07 +0000)
committerPhilip Reames <listmail@philipreames.com>
Mon, 13 Apr 2015 18:07:21 +0000 (18:07 +0000)
commit8b190f84969b15a772ef2ba5a5989389cbece426
tree7f9fbd7f5caf8ac43c7536e2eca45e3dcc4d1b0a
parenta017ce21bae00af3322303c2b840c2fe15e424f3
[RewriteStatepointsForGC] Fix a latent bug in normalization for invoke statepoint [NFC]

Since we're restructuring the CFG, we also need to make sure to update the analsis passes. While I'm touching the code, I dedicided to restructure it a bit.  The code involved here was very confusing.  This change moves the normalization to essentially being a pre-pass before the main insertion work and updates a few comments to actually say what is happening and *why*.

The restructuring should be covered by existing tests.  I couldn't easily see how to create a test for the invalidation bug.  Suggestions welcome.

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