Skip to content

Conversation

@cdevadas
Copy link

@cdevadas cdevadas commented Nov 7, 2025

The register tuple spilling during RA is suboptimal when we restore the entire tuple before the instructions that has only the subreg use of the original tuple. This will lead to unwanted register pressure and cases of unsuccessful allocation when deal with tests of large value types.

This patch allows targets to enable subreg reloads by constructing a super class matching the subreg(s) involved in the MI in question and eventually would improve the allocation by avoiding the unwanted subreg reload components in the first place.

The register tuple spilling during RA is suboptimal when we restore
the entire tuple before the instructions that has only the subreg use
of the original tuple. This will lead to unwanted register pressure and
cases of unsuccessful allocation when deal with tests of large value types.

This patch allows targets to enable subreg reloads by constructing a
super class matching the subreg(s) involved in the MI in question and
eventually would improve the allocation by avoiding the unwanted subreg
reload components in the first place.
@z1-cciauto
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants