-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[AMDGPU] NFC: Decouple getRealRegPressure from current region #149219
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
Conversation
Change-Id: I40021f0afafc2cfc68b0ba4753c3cfd7f67f4fe8
|
@llvm/pr-subscribers-backend-amdgpu Author: Jeffrey Byrnes (jrbyrnes) ChangesWe're already accepting a RegionIdx for the LiveIns, also use this for the instruciton iterators. Enables querying RP for other blocks which is useful for function wide transformations (e.g. rematerialization, rewriting, etc). Full diff: https://github.com/llvm/llvm-project/pull/149219.diff 1 Files Affected:
diff --git a/llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp b/llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
index fce8f36d45969..d995d3950ffda 100644
--- a/llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
@@ -803,7 +803,7 @@ void GCNScheduleDAGMILive::schedule() {
GCNRegPressure
GCNScheduleDAGMILive::getRealRegPressure(unsigned RegionIdx) const {
GCNDownwardRPTracker RPTracker(*LIS);
- RPTracker.advance(begin(), end(), &LiveIns[RegionIdx]);
+ RPTracker.advance(Regions[RegionIdx].first, Regions[RegionIdx].second, &LiveIns[RegionIdx]);
return RPTracker.moveMaxPressure();
}
|
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
Change-Id: Ia5c131be3017254f292dfa6bd5b9078feb8a0eb9
lucas-rami
left a comment
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
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/19158 Here is the relevant piece of the build log for the reference |
…49219) We're already accepting a RegionIdx for the LiveIns, also use this for the instruction iterators. Enables querying RP for other regions -- useful for function wide transformations (e.g. rematerialization, rewriting, etc).
We're already accepting a RegionIdx for the LiveIns, also use this for the instruction iterators.
Enables querying RP for other regions -- useful for function wide transformations (e.g. rematerialization, rewriting, etc).