Skip to content

Commit 0bd065d

Browse files
authored
[AMDGPU] Extend test coverage for cross RC register coalescing (#132137)
Add some test cases for subregister to subregister copies. Also add cases where the register class is not required by the instruction.
1 parent 3e235a7 commit 0bd065d

File tree

2 files changed

+2263
-1
lines changed

2 files changed

+2263
-1
lines changed

llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class GCNIterativeScheduler::OverrideLegacyStrategy {
216216
assert(Sch.RegionBegin == Rgn.Begin && Sch.RegionEnd == Rgn.End);
217217
// DAG SUnits are stored using original region's order
218218
// so just use SUnits as the restoring schedule
219+
errs() << "restore order\n";
219220
Sch.scheduleRegion(Rgn, Sch.SUnits, SaveMaxRP);
220221
}
221222
};
@@ -374,6 +375,10 @@ void GCNIterativeScheduler::scheduleRegion(Region &R, Range &&Schedule,
374375
const GCNRegPressure &MaxRP) {
375376
assert(RegionBegin == R.Begin && RegionEnd == R.End);
376377
assert(LIS != nullptr);
378+
errs() << "Scheedule region R: ";
379+
for (auto I = R.Begin; I != R.End; I++) {
380+
I->dump();
381+
}
377382
#ifndef NDEBUG
378383
const auto SchedMaxRP = getSchedulePressure(R, Schedule);
379384
#endif

0 commit comments

Comments
 (0)