This is an archive of the discontinued LLVM Phabricator instance.

Semantic tests for memory invalidation at statepoints
ClosedPublic

Authored by reames on Dec 2 2014, 5:12 PM.

Details

Summary

These are simply a collection of tests intended to show that information about the contents of gc references in the heap is lost at a statepoint. I've tried to write them so that they don't disallow correct transformations, while still being fairly easy to understand.

I'd appreciate a sanity check to make sure the tests actually agree with the documentation.

p.s. Ideas for additional tests are welcome.

Diff Detail

Repository
rL LLVM

Event Timeline

reames updated this revision to Diff 16840.Dec 2 2014, 5:12 PM
reames retitled this revision from to Semantic tests for memory invalidation at statepoints.
reames updated this object.
reames edited the test plan for this revision. (Show Details)
reames updated this object.
reames added reviewers: atrick, sanjoy.
reames added subscribers: Unknown Object (MLST), sanjoy, atrick.
reames removed subscribers: atrick, sanjoy.
sanjoy accepted this revision.Dec 8 2014, 11:40 AM
sanjoy edited edge metadata.

LGTM with the comment corrected.

test/CodeGen/X86/statepoint-forward.ll
67 ↗(On Diff #16840)

This comment is misleading -- AFAICT what we're checking here is that we can have pointers to GC-ed objects on non GC heaps.

This revision is now accepted and ready to land.Dec 8 2014, 11:40 AM
This revision was automatically updated to reflect the committed changes.