Implicit defs/uses list may be empty.

llvm-svn: 5103
This commit is contained in:
Chris Lattner 2002-12-18 01:11:14 +00:00
parent b54343a64f
commit dc451c6d27
1 changed files with 6 additions and 6 deletions

View File

@ -92,13 +92,13 @@ namespace {
void invalidatePhysRegs(const MachineInstr *MI) {
unsigned Opcode = MI->getOpcode();
const MachineInstrDescriptor &Desc = TM.getInstrInfo().get(Opcode);
const unsigned *regs = Desc.ImplicitUses;
while (*regs)
RegsUsed.insert(*regs++);
if (const unsigned *regs = Desc.ImplicitUses)
while (*regs)
RegsUsed.insert(*regs++);
regs = Desc.ImplicitDefs;
while (*regs)
RegsUsed.insert(*regs++);
if (const unsigned *regs = Desc.ImplicitDefs)
while (*regs)
RegsUsed.insert(*regs++);
}
void cleanupAfterFunction() {