mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix an obvious bug, noticed by inspection. No current targets trigger this.
llvm-svn: 29648
This commit is contained in:
parent
a75d3b6d0d
commit
d4ee71db50
@ -103,9 +103,9 @@ bool PNE::EliminatePHINodes(MachineFunction &MF, MachineBasicBlock &MBB) {
|
||||
/// use of the specified register.
|
||||
static bool InstructionUsesRegister(MachineInstr *MI, unsigned SrcReg) {
|
||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i)
|
||||
if (MI->getOperand(0).isRegister() &&
|
||||
MI->getOperand(0).getReg() == SrcReg &&
|
||||
MI->getOperand(0).isUse())
|
||||
if (MI->getOperand(i).isRegister() &&
|
||||
MI->getOperand(i).getReg() == SrcReg &&
|
||||
MI->getOperand(i).isUse())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user