mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 03:40:35 +00:00
Implicit defs/uses list may be empty.
llvm-svn: 5103
This commit is contained in:
parent
b1c74bb421
commit
bb2e7ec2b1
@ -92,13 +92,13 @@ namespace {
|
|||||||
void invalidatePhysRegs(const MachineInstr *MI) {
|
void invalidatePhysRegs(const MachineInstr *MI) {
|
||||||
unsigned Opcode = MI->getOpcode();
|
unsigned Opcode = MI->getOpcode();
|
||||||
const MachineInstrDescriptor &Desc = TM.getInstrInfo().get(Opcode);
|
const MachineInstrDescriptor &Desc = TM.getInstrInfo().get(Opcode);
|
||||||
const unsigned *regs = Desc.ImplicitUses;
|
if (const unsigned *regs = Desc.ImplicitUses)
|
||||||
while (*regs)
|
while (*regs)
|
||||||
RegsUsed.insert(*regs++);
|
RegsUsed.insert(*regs++);
|
||||||
|
|
||||||
regs = Desc.ImplicitDefs;
|
if (const unsigned *regs = Desc.ImplicitDefs)
|
||||||
while (*regs)
|
while (*regs)
|
||||||
RegsUsed.insert(*regs++);
|
RegsUsed.insert(*regs++);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cleanupAfterFunction() {
|
void cleanupAfterFunction() {
|
||||||
|
Loading…
Reference in New Issue
Block a user