This is an archive of the discontinued LLVM Phabricator instance.

[InlineSpiller] Relax re-materialization restriction for statepoint
ClosedPublic

Authored by skatkov on Feb 28 2020, 2:41 AM.

Details

Summary

We should be careful to allow count of re-materialization of operands to be less
then number of physical registers.

STATEPOINT instruction has a variable number of operands and potentially very big.
So re-materialization for all operands is disabled at the moment if restrict-statepoint-remat is true.

The patch relaxes the re-materialization restriction for STATEPOINT instruction allowing it for
fixed operands. Specifically it is about call target.

Diff Detail

Event Timeline

skatkov created this revision.Feb 28 2020, 2:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2020, 2:41 AM
reames accepted this revision.Feb 28 2020, 1:03 PM

LGTM

This revision is now accepted and ready to land.Feb 28 2020, 1:03 PM
This revision was automatically updated to reflect the committed changes.