1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

findRegisterUseOperand() changed.

llvm-svn: 35366
This commit is contained in:
Evan Cheng 2007-03-26 22:41:48 +00:00
parent 0ff19780f9
commit 968135bd3f
2 changed files with 3 additions and 3 deletions

View File

@ -278,8 +278,8 @@ ARMInstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI,
for (unsigned j = 0; j < 2; ++j) {
// Look at the two new MI's in reverse order.
MachineInstr *NewMI = NewMIs[j];
MachineOperand *NMO = NewMI->findRegisterUseOperand(Reg);
if (!NMO)
int NIdx = NewMI->findRegisterUseOperand(Reg);
if (NIdx != -1)
continue;
LV.addVirtualRegisterKilled(Reg, NewMI);
if (VI.removeKill(MI))

View File

@ -221,7 +221,7 @@ ARMLoadStoreOpt::MergeLDR_STR(MachineBasicBlock &MBB, unsigned SIndex,
}
}
bool BaseKill = Loc->findRegisterUseOperand(Base, true) != NULL;
bool BaseKill = Loc->findRegisterUseOperand(Base, true) != -1;
if (mergeOps(MBB, ++Loc, SOffset, Base, BaseKill, Opcode,Scratch,Regs, TII)) {
Merges.push_back(prior(Loc));
for (unsigned i = SIndex, e = MemOps.size(); i != e; ++i) {