mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-05 10:39:21 +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) {
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user