@@ -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