Cleanup ImmToIdxMap and noImmForm in PPCRegisterInfo
authorHal Finkel <hfinkel@anl.gov>
Sun, 31 Mar 2013 14:43:31 +0000 (14:43 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 31 Mar 2013 14:43:31 +0000 (14:43 +0000)
commit4345e8040f14781d20fd5fa2f7ee3c75fa611fa1
tree1d92729c7389cb9f85bf1157b01a2e68bd5201c0
parentb8f0d89d0584e37e205c04ed5753f57a23365403
Cleanup ImmToIdxMap and noImmForm in PPCRegisterInfo

ImmToIdxMap should be a DenseMap (not a std::map) because there
is no ordering requirement. Also, we don't need a separate list
of instructions for noImmForm in eliminateFrameIndex, because this
list is essentially the complement of the keys in ImmToIdxMap.

No functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178450 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/PowerPC/PPCRegisterInfo.h