[RS4GC] Re-purpose `normalizeForInvokeSafepoint`; NFC.
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 20 Oct 2015 01:06:24 +0000 (01:06 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 20 Oct 2015 01:06:24 +0000 (01:06 +0000)
commit66e29d1ed12ba50ff8a14ad556a05a1f30d253b4
treeb2d905f904232291f5cbc35973507009314a70c7
parent8293dfd63f4a38dbf81da882c4ec699ebb098f95
[RS4GC] Re-purpose `normalizeForInvokeSafepoint`; NFC.

`normalizeForInvokeSafepoint` in RewriteStatepointsForGC.cpp, as it is
written today, deals with `gc.relocate` and `gc.result` uses of a
statepoint equally well.  This change documents this fact and adds a
test case.

There is no functional change here -- only documentation of existing
functionality.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250784 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
test/Transforms/RewriteStatepointsForGC/deopt-bundles/rewrite-invoke.ll [new file with mode: 0644]