[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)
commiteba97c573f08332c9c9d1875c304cce1bea2e28e
treee0ca31ab69483c2c3f3174495ec9813514ee0e39
parente2e00dffdf4512d948daf74257d6f012362b44c9
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175219 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsDelaySlotFiller.cpp