Skip to content

Commit c77a2a2

Browse files
authored
[AMDGPU][Scheduler] Use AMDGPU::NoSubRegister instead of 0 (NFC) (llvm#150610)
1 parent 2177448 commit c77a2a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,8 +1914,8 @@ void PreRARematStage::rematerialize() {
19141914
unsigned DefRegion = MIRegion.at(DefMI);
19151915

19161916
// Rematerialize DefMI to its use block.
1917-
TII->reMaterialize(*InsertPos->getParent(), InsertPos, Reg, 0, *DefMI,
1918-
*DAG.TRI);
1917+
TII->reMaterialize(*InsertPos->getParent(), InsertPos, Reg,
1918+
AMDGPU::NoSubRegister, *DefMI, *DAG.TRI);
19191919
Remat.RematMI = &*std::prev(InsertPos);
19201920
DAG.LIS->InsertMachineInstrInMaps(*Remat.RematMI);
19211921

@@ -2066,7 +2066,8 @@ void PreRARematStage::finalizeGCNSchedStage() {
20662066
// Re-rematerialize MI at the end of its original region. Note that it may
20672067
// not be rematerialized exactly in the same position as originally within
20682068
// the region, but it should not matter much.
2069-
TII->reMaterialize(*MBB, InsertPos, Reg, 0, RematMI, *DAG.TRI);
2069+
TII->reMaterialize(*MBB, InsertPos, Reg, AMDGPU::NoSubRegister, RematMI,
2070+
*DAG.TRI);
20702071
MachineInstr *NewMI = &*std::prev(InsertPos);
20712072
DAG.LIS->InsertMachineInstrInMaps(*NewMI);
20722073

0 commit comments

Comments
 (0)