Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler causes spilling by reordering wide load before MFMA #122237

Open
arsenm opened this issue Jan 9, 2025 · 1 comment
Open

Scheduler causes spilling by reordering wide load before MFMA #122237

arsenm opened this issue Jan 9, 2025 · 1 comment
Assignees

Comments

@arsenm
Copy link
Contributor

arsenm commented Jan 9, 2025

scheduler-causes-spill-load-mfma.ll.zip

In this testcase, disabling the scheduler avoids spilling. If the load and mfmas are manually ordered to minimize the live ranges, the load is hoisted which induces spilling. Additionally, if the load and mfma aren't manually reordered, the scheduler doesn't help by sinking the load past the first mfma

@llvmbot
Copy link
Member

llvmbot commented Jan 9, 2025

@llvm/issue-subscribers-backend-amdgpu

Author: Matt Arsenault (arsenm)

[scheduler-causes-spill-load-mfma.ll.zip](https://github.com/user-attachments/files/18359164/scheduler-causes-spill-load-mfma.ll.zip)

In this testcase, disabling the scheduler avoids spilling. If the load and mfmas are manually ordered to minimize the live ranges, the load is hoisted which induces spilling. Additionally, if the load and mfma aren't manually reordered, the scheduler doesn't help by sinking the load past the first mfma

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

No branches or pull requests

4 participants