-
Couldn't load subscription status.
- Fork 75
[AMDGPU][WaveTransform] Enable SIOptimizeExecMaskingPreRA pass for new pipeline. #412
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
[AMDGPU][WaveTransform] Enable SIOptimizeExecMaskingPreRA pass for new pipeline. #412
Conversation
pipeline This patch introduces SIOptimizeExecMaskingPreRA after AMDGPUWaveTransform pass, but just before SGPR allocation to reduce register pressure for the new pipeline. While at the same time, it still acts as pre-RA pass optimizing EXEC-mask related instructions for legacy pipeline.
|
PSDB Build Link: http://mlse-bdc-20dd129:8065/#/builders/10/builds/11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| // instructions that cause scheduling barriers. | ||
| insertPass(&MachineSchedulerID, &SIWholeQuadModeID); | ||
|
|
||
| if (!LateWaveTransform && OptExecMaskPreRA) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't change the default behavior. This has to be retained.
| addPass(&RegisterCoalescerID); | ||
| } | ||
|
|
||
| if (OptExecMaskPreRA) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move it inside the LateWaveTransform check.
This patch introduces SIOptimizeExecMaskingPreRA after AMDGPUWaveTransform pass, but just before SGPR allocation to reduce register pressure for the new pipeline. While at the same time, it still acts as pre-RA pass optimizing EXEC-mask related instructions for legacy pipeline.
It is a follow-up which depended on the #369.