[mips] Simplify code in function Filler::findDelayInstr.
authorAkira Hatanaka <ahatanaka@mips.com>
Thu, 14 Feb 2013 23:11:24 +0000 (23:11 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Thu, 14 Feb 2013 23:11:24 +0000 (23:11 +0000)
commitdfd2f24d0c1451fc81539f56b2b137719e20bdbe
tree6098271bc9b52e1197fa3a08ad05bf1a08b916c2
parent9d0a1e2d8ee8c6fa1cd98561b6c2ec60de9b2a7b
[mips] Simplify code in function Filler::findDelayInstr.

1. Define and use function terminateSearch.
2. Use MachineBasicBlock::iterator instead of MachineBasicBlock::instr_iterator.
3. Delete the line which checks whether an instruction is a pseudo.

llvm-svn: 175219
llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp