@@ -1914,8 +1914,8 @@ void PreRARematStage::rematerialize() {
1914
1914
unsigned DefRegion = MIRegion.at (DefMI);
1915
1915
1916
1916
// 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 );
1919
1919
Remat.RematMI = &*std::prev (InsertPos);
1920
1920
DAG.LIS ->InsertMachineInstrInMaps (*Remat.RematMI );
1921
1921
@@ -2066,7 +2066,8 @@ void PreRARematStage::finalizeGCNSchedStage() {
2066
2066
// Re-rematerialize MI at the end of its original region. Note that it may
2067
2067
// not be rematerialized exactly in the same position as originally within
2068
2068
// 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 );
2070
2071
MachineInstr *NewMI = &*std::prev (InsertPos);
2071
2072
DAG.LIS ->InsertMachineInstrInMaps (*NewMI);
2072
2073
0 commit comments