mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103538 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0481449a05
commit
3ae56bcd8a
@ -1135,10 +1135,11 @@ static void UpdateRegSequenceSrcs(unsigned SrcReg,
|
||||
unsigned DstReg, unsigned SrcIdx,
|
||||
MachineRegisterInfo *MRI) {
|
||||
for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg),
|
||||
UE = MRI->reg_end(); RI != UE; ) {
|
||||
RE = MRI->reg_end(); RI != RE; ) {
|
||||
MachineOperand &MO = RI.getOperand();
|
||||
++RI;
|
||||
MO.setReg(DstReg);
|
||||
assert(MO.getSubReg() == 0);
|
||||
MO.setSubReg(SrcIdx);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user