This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Remove unused entries in gc-liv bundle of statepoint
ClosedPublic

Authored by skatkov on Aug 14 2020, 12:41 AM.

Details

Summary

If some of gc live value are not used in gc.relocate we can remove them
from gc-live bundle of statepoint instruction.

Also the CL removes duplicated Values in gc-live bundle.

Diff Detail

Event Timeline

skatkov created this revision.Aug 14 2020, 12:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2020, 12:41 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
dantrushin accepted this revision.Aug 14 2020, 5:37 AM

LGTM with couple nits inline

llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
1549

Change to early exit (break)

1579

Can we avoid creating empty bundles here?

This revision is now accepted and ready to land.Aug 14 2020, 5:37 AM