Fix some uses of getSubRegisters() to use getSubReg() instead.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 30 May 2012 18:40:49 +0000 (18:40 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 30 May 2012 18:40:49 +0000 (18:40 +0000)
commit6c823822cdab902e8ecc52603f9c24a0e4b95d42
treea68a583734f70d9bbd5a960aa2f01c802f275623
parent275fd2523edd30e75af6398c25d47e94cc32f150
Fix some uses of getSubRegisters() to use getSubReg() instead.

It is better to address sub-registers directly by name instead of
relying on their position in the sub-register list.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157703 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonRegisterInfo.cpp
lib/Target/Mips/MipsFrameLowering.cpp
lib/Target/Mips/MipsInstrInfo.cpp