Skip to content

[AMDGPU] Correct pass dependencies for SILowerSGPRSpills #109937

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

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

optimisan
Copy link
Contributor

@optimisan optimisan commented Sep 25, 2024

Replace unused analysis (VirtRegMap) dependency with the used one (SlotIndexes)
Initializes SlotIndexesWrapperPass which is used by SILowerSGPRSpills to ensure that legacy pass manager finds it.
Removes the initialization for VirtRegMapWrapperPass since it is not requested in this pass.

@llvmbot
Copy link
Member

llvmbot commented Sep 25, 2024

@llvm/pr-subscribers-backend-amdgpu

Author: Akshat Oke (Akshat-Oke)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/109937.diff

1 Files Affected:

  • (modified) llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp (+1-1)
diff --git a/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp b/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
index d385261184e718..dcdac5a0942ab4 100644
--- a/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
@@ -83,7 +83,7 @@ char SILowerSGPRSpillsLegacy::ID = 0;
 INITIALIZE_PASS_BEGIN(SILowerSGPRSpillsLegacy, DEBUG_TYPE,
                       "SI lower SGPR spill instructions", false, false)
 INITIALIZE_PASS_DEPENDENCY(LiveIntervalsWrapperPass)
-INITIALIZE_PASS_DEPENDENCY(VirtRegMapWrapperPass)
+INITIALIZE_PASS_DEPENDENCY(SlotIndexesWrapperPass)
 INITIALIZE_PASS_END(SILowerSGPRSpillsLegacy, DEBUG_TYPE,
                     "SI lower SGPR spill instructions", false, false)
 

Copy link
Contributor

@arsenm arsenm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description needs to be more specific

@arsenm
Copy link
Contributor

arsenm commented Oct 7, 2024

Description needs to be more specific

Bump

@optimisan optimisan force-pushed the users/Akshat-Oke/update-dep branch from 7b68d9f to a1925ae Compare October 8, 2024 04:42
@optimisan
Copy link
Contributor Author

ping

@arsenm
Copy link
Contributor

arsenm commented Oct 9, 2024

ping

Fix the description

@optimisan optimisan force-pushed the users/Akshat-Oke/port-vrm branch from b1d74ad to ccf824b Compare October 14, 2024 05:40
@optimisan optimisan force-pushed the users/Akshat-Oke/update-dep branch from a1925ae to ca68507 Compare October 14, 2024 05:40
@optimisan
Copy link
Contributor Author

Also updated in PR.
Initializes correct dependency as VirtRegMapWrapper is unused here

Copy link
Contributor

@arsenm arsenm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description still not fixed

@cdevadas cdevadas changed the title Update correct dependency [AMDGPU][SILowerSGPRSpills] Updated the correct pass dependency. Oct 14, 2024
@cdevadas cdevadas changed the title [AMDGPU][SILowerSGPRSpills] Updated the correct pass dependency. [AMDGPU][SILowerSGPRSpills] Updated the correct pass dependency Oct 14, 2024
@optimisan optimisan changed the title [AMDGPU][SILowerSGPRSpills] Updated the correct pass dependency [AMDGPU][SILowerSGPRSpills] Update the correct pass dependency initialization Oct 14, 2024
@optimisan optimisan force-pushed the users/Akshat-Oke/port-vrm branch from ccf824b to ff93403 Compare October 14, 2024 13:35
@optimisan optimisan force-pushed the users/Akshat-Oke/update-dep branch from ca68507 to db91ca0 Compare October 14, 2024 13:35
@optimisan optimisan force-pushed the users/Akshat-Oke/port-vrm branch from ff93403 to a3d67dd Compare October 21, 2024 08:25
@optimisan optimisan force-pushed the users/Akshat-Oke/update-dep branch from db91ca0 to dee5a29 Compare October 21, 2024 08:26
@optimisan
Copy link
Contributor Author

I think this describes it better?

@arsenm arsenm changed the title [AMDGPU][SILowerSGPRSpills] Update the correct pass dependency initialization [AMDGPU] Correct pass dependencies for SILowerSGPRSpills Oct 21, 2024
@optimisan optimisan force-pushed the users/Akshat-Oke/port-vrm branch from a3d67dd to 8a82e45 Compare October 22, 2024 09:39
@optimisan optimisan force-pushed the users/Akshat-Oke/update-dep branch from dee5a29 to 2cd5b9b Compare October 22, 2024 09:39
@optimisan
Copy link
Contributor Author

optimisan commented Oct 22, 2024

Merge activity

  • Oct 22, 5:41 AM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 22, 5:48 AM EDT: Graphite rebased this pull request as part of a merge.
  • Oct 22, 5:50 AM EDT: A user merged this pull request with Graphite.

@optimisan optimisan force-pushed the users/Akshat-Oke/port-vrm branch from 8a82e45 to cb4a3b2 Compare October 22, 2024 09:43
Base automatically changed from users/Akshat-Oke/port-vrm to main October 22, 2024 09:45
Replace the unused analysis (VirtRegMap) dependency with the used one (SlotIndexes).

This initializes `SlotIndexesWrapperPass` which is used by SILowerSGPRSpills to ensure that legacy pass manager finds it.
Removes the initialization for `VirtRegMapWrapperLegacy` pass since it is not requested in this pass.
@optimisan optimisan force-pushed the users/Akshat-Oke/update-dep branch from 2cd5b9b to 8dbbf81 Compare October 22, 2024 09:48
@optimisan optimisan merged commit 834b820 into main Oct 22, 2024
4 of 6 checks passed
@optimisan optimisan deleted the users/Akshat-Oke/update-dep branch October 22, 2024 09:50
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