This is an archive of the discontinued LLVM Phabricator instance.

[RewriteStatepointsForGC] Remove obsolete assertion
ClosedPublic

Authored by igor-laevsky on May 16 2016, 11:31 AM.

Details

Summary

This is assertion is no longer necessary since we never record constants in the live set anyway. (They are never recorded in the initial live set, and constant bases are removed near line 2119)

Diff Detail

Repository
rL LLVM

Event Timeline

igor-laevsky retitled this revision from to [RewriteStatepointsForGC] Remove obsolete assertion.
igor-laevsky updated this object.
igor-laevsky added a reviewer: reames.
igor-laevsky added a subscriber: llvm-commits.

Drop by comments.

test/Transforms/RewriteStatepointsForGC/constants.ll
107 ↗(On Diff #57377)

The bitcast seems unnecessary -- do we need it for reproducing the crash?

reames accepted this revision.May 16 2016, 6:19 PM
reames edited edge metadata.

LGTM w/the test simplifications Sanjoy pointed out.

FTR, I've reviewed the code which handles constant base and derived pointers in the entire file and it appears to be correct. I had thought we'd already removed this assert and am more than a bit surprised to find we hadn't.

This revision is now accepted and ready to land.May 16 2016, 6:19 PM
This revision was automatically updated to reflect the committed changes.