Skip to content

[AMDGPU] Use existing TargetTransformInfo instances in AMDGPUSplitModule #93166

Closed
@Pierre-vh

Description

@Pierre-vh

As AMDGPUSplitModule sits outside the PassManager, it can't access TTI normally and it has to build a new instance.
It works as a short term hack for the pass MVP, but it really shouldn't do that.

A better solution would be to make AMDGPUSplitModule a proper pass (and likely the original SplitModule too) that runs last, so it can easily access all the analysis it needs. This in turns opens the door to using more powerful analysis in the future if needed.

The pass can take a callback so the driver can allocate new contexts/modules and write them out without the pass having any idea of how that works.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions