File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1468,15 +1468,16 @@ bool SIFoldOperands::runOnMachineFunction(MachineFunction &MF) {
1468
1468
tryFoldInst (TII, &MI);
1469
1469
1470
1470
if (!TII->isFoldableCopy (MI)) {
1471
+ // Saw an unknown clobber of m0, so we no longer know what it is.
1472
+ if (CurrentKnownM0Val && MI.modifiesRegister (AMDGPU::M0, TRI))
1473
+ CurrentKnownM0Val = nullptr ;
1474
+
1471
1475
// TODO: Omod might be OK if there is NSZ only on the source
1472
1476
// instruction, and not the omod multiply.
1473
1477
if (IsIEEEMode || (!HasNSZ && !MI.getFlag (MachineInstr::FmNsz)) ||
1474
1478
!tryFoldOMod (MI))
1475
1479
tryFoldClamp (MI);
1476
1480
1477
- // Saw an unknown clobber of m0, so we no longer know what it is.
1478
- if (CurrentKnownM0Val && MI.modifiesRegister (AMDGPU::M0, TRI))
1479
- CurrentKnownM0Val = nullptr ;
1480
1481
continue ;
1481
1482
}
1482
1483
You can’t perform that action at this time.
0 commit comments