ARM: Clean up optimizeCompare in peephole, no functional change.
authorManman Ren <mren@apple.com>
Fri, 29 Jun 2012 22:06:19 +0000 (22:06 +0000)
committerManman Ren <mren@apple.com>
Fri, 29 Jun 2012 22:06:19 +0000 (22:06 +0000)
commit76c6ccbd4cee0637c961e32435177ab89e931fed
treee777a8db1cce91c562e29acb04d30759e2844f52
parentde7266c611b37ec050efb53b73166081a98cea13
ARM: Clean up optimizeCompare in peephole, no functional change.

Use getUniqueVRegDef.
Replace a loop with existing interfaces: modifiesRegister and readsRegister.
Factor out code into inline functions and simplify the code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159470 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp