This is an archive of the discontinued LLVM Phabricator instance.

[Transforms] Write basic -place-safepoints test, fix bug
AbandonedPublic

Authored by artagnon on Feb 5 2015, 8:05 PM.

Details

Reviewers
reames
Summary

Start out by documenting the minmum example of -place-safepoints
working. While doing this, improve a couple of assert errors from
PlaceSafepoints and fix a bug: deopt arguments was not accounted for,
causing a verify-failure.

Diff Detail

Event Timeline

artagnon updated this revision to Diff 19455.Feb 5 2015, 8:05 PM
artagnon retitled this revision from to [Transforms] Write basic -place-safepoints test, fix bug.
artagnon updated this object.
artagnon edited the test plan for this revision. (Show Details)
artagnon added a reviewer: reames.
artagnon added a subscriber: Unknown Object (MLST).
artagnon updated this revision to Diff 19551.Feb 8 2015, 12:39 PM

More work in the same direction.

Rewrite gc.statepoint, gc.result calls to use the IRBuilder API, and
write one additional test. TODO: work on CreateGCStatepoint to handle
both Call and Invoke; the invoke codepath calls gc.statepoint by hand
currently.

Should be simple enough to LGTM quickly and move forward.

artagnon updated this revision to Diff 19552.Feb 8 2015, 12:42 PM

A quick run through clang-format.

reames edited edge metadata.Feb 9 2015, 11:48 AM

I approve of the general direction here but request distinct patches:

  1. The bug fix
  2. The style changes and asserts
  3. Use of IRBuilder

As currently structured, it's hard to review because so much is mixed together.

reames added a comment.Feb 9 2015, 1:24 PM

FYI, when preparing my own patch to add some of our out of tree tests I ran across this and one other bug. I'm going to submit a fix shortly.

Annoyingly, these bugs only existed in the upstream version. I made a mistake while separating out the patch for submission from our tree.

artagnon updated this revision to Diff 19607.Feb 9 2015, 1:25 PM
artagnon edited edge metadata.

As requested by reames, shrink the original submission to be just the
bugfix. Other changes will come as later patches.

Do try to rebase onto my changes; I did spend quite a bit of time painfully splitting the patches.

I believe this bug has been fixed in ToT. If you want to submit the test case anyways, LGTM.

Sorry for the overlapping changes here.

artagnon abandoned this revision.Feb 14 2015, 2:13 PM

I submitted the relevant test with 69a5c891.