mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-26 09:49:48 +00:00
Fix broken comment phrasing and indentation
This commit is contained in:
parent
cfbbdc83b4
commit
269c1c703d
@ -1140,10 +1140,9 @@ void SIRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator MI,
|
||||
MIB.addImm(0); // clamp bit
|
||||
}
|
||||
} else {
|
||||
// We have to produce a carry out, and we there isn't a free SGPR
|
||||
// pair for it. We can keep the whole computation on the SALU to
|
||||
// avoid clobbering an additional register at the cost of an extra
|
||||
// mov.
|
||||
// We have to produce a carry out, and there isn't a free SGPR pair
|
||||
// for it. We can keep the whole computation on the SALU to avoid
|
||||
// clobbering an additional register at the cost of an extra mov.
|
||||
|
||||
// We may have 1 free scratch SGPR even though a carry out is
|
||||
// unavailable. Only one additional mov is needed.
|
||||
@ -1165,9 +1164,9 @@ void SIRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator MI,
|
||||
BuildMI(*MBB, MI, DL, TII->get(AMDGPU::S_SUB_U32), ScaledReg)
|
||||
.addReg(ScaledReg, RegState::Kill)
|
||||
.addImm(Offset);
|
||||
BuildMI(*MBB, MI, DL, TII->get(AMDGPU::S_LSHL_B32), ScaledReg)
|
||||
.addReg(DiffReg, RegState::Kill)
|
||||
.addImm(ST.getWavefrontSizeLog2());
|
||||
BuildMI(*MBB, MI, DL, TII->get(AMDGPU::S_LSHL_B32), ScaledReg)
|
||||
.addReg(DiffReg, RegState::Kill)
|
||||
.addImm(ST.getWavefrontSizeLog2());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user