File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -1354,7 +1354,7 @@ void RegAllocFast::allocateInstruction(MachineInstr &MI) {
1354
1354
if (MRI->isReserved (Reg))
1355
1355
continue ;
1356
1356
bool displacedAny = usePhysReg (MI, Reg);
1357
- if (!displacedAny && !MRI-> isReserved (Reg) )
1357
+ if (!displacedAny)
1358
1358
MO.setIsKill (true );
1359
1359
}
1360
1360
}
@@ -1406,12 +1406,7 @@ void RegAllocFast::allocateInstruction(MachineInstr &MI) {
1406
1406
for (MachineOperand &MO : llvm::reverse (MI.operands ())) {
1407
1407
if (!MO.isReg () || !MO.isDef () || !MO.isEarlyClobber ())
1408
1408
continue ;
1409
- // subreg defs don't free the full register. We left the subreg number
1410
- // around as a marker in setPhysReg() to recognize this case here.
1411
- if (MO.getSubReg () != 0 ) {
1412
- MO.setSubReg (0 );
1413
- continue ;
1414
- }
1409
+ assert (!MO.getSubReg () && " should be already handled in def processing" );
1415
1410
1416
1411
Register Reg = MO.getReg ();
1417
1412
if (!Reg)
You can’t perform that action at this time.
0 commit comments