Clear PhysRegPartUse for the sub register as well.
llvm-svn: 47453
This commit is contained in:
parent
963192f40b
commit
15526b2e52
|
@ -246,7 +246,7 @@ void LiveVariables::HandlePhysRegUse(unsigned Reg, MachineInstr *MI) {
|
||||||
// Now reset the use information for the sub-registers.
|
// Now reset the use information for the sub-registers.
|
||||||
for (const unsigned *SubRegs = RegInfo->getSubRegisters(Reg);
|
for (const unsigned *SubRegs = RegInfo->getSubRegisters(Reg);
|
||||||
unsigned SubReg = *SubRegs; ++SubRegs) {
|
unsigned SubReg = *SubRegs; ++SubRegs) {
|
||||||
// FIXME: Should we do: "PhysRegPartUse[SubReg] = NULL;" here?
|
PhysRegPartUse[SubReg] = NULL;
|
||||||
PhysRegInfo[SubReg] = MI;
|
PhysRegInfo[SubReg] = MI;
|
||||||
PhysRegUsed[SubReg] = true;
|
PhysRegUsed[SubReg] = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue