mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 00:36:36 +00:00
When marking a register as being implicitly defined, make sure to clear its partial use info as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37046 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
930d161ba2
commit
8b966d9fd0
@ -314,6 +314,7 @@ void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {
|
||||
}
|
||||
PhysRegInfo[SubReg] = MI;
|
||||
PhysRegUsed[SubReg] = false;
|
||||
PhysRegPartUse[SubReg] = NULL;
|
||||
}
|
||||
|
||||
if (MI)
|
||||
@ -328,6 +329,7 @@ void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {
|
||||
MI->addRegOperand(SuperReg, true/*IsDef*/,true/*IsImp*/);
|
||||
PhysRegInfo[SuperReg] = MI;
|
||||
PhysRegUsed[SuperReg] = false;
|
||||
PhysRegPartUse[SuperReg] = NULL;
|
||||
} else {
|
||||
// Remember this partial def.
|
||||
PhysRegPartDef[SuperReg].push_back(MI);
|
||||
|
Loading…
Reference in New Issue
Block a user