ARM: Handle physreg targets in RegPair hints gracefully
authorMatthias Braun <matze@braunis.de>
Fri, 3 Apr 2015 00:18:38 +0000 (00:18 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 3 Apr 2015 00:18:38 +0000 (00:18 +0000)
commit67a2b82b141548856bf5b3117e3830c7cb3fb2c4
tree2eae61e606806c351df6168ecb84d2be9e919e3f
parentb2e4ca21f4417cab485bf16235f0a6c6d7d2b6a8
ARM: Handle physreg targets in RegPair hints gracefully

Register coalescing can change the target of a RegPair hint to a
physreg, we should not crash on this. This also slightly improved the
way ARMBaseRegisterInfo::updateRegAllocHint() works.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233987 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseRegisterInfo.cpp
test/CodeGen/ARM/regpair_hint_phys.ll [new file with mode: 0644]