mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
Handle NewReg==OldReg in renameRegister().
This can happen when widening a virtual register to a super-register class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156867 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
141aea9cff
commit
70724aaf73
@ -721,7 +721,8 @@ renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx) {
|
||||
|
||||
if (TargetRegisterInfo::isVirtualRegister(NewReg))
|
||||
mapVirtReg(NewReg, UV);
|
||||
virtRegToEqClass.erase(OldReg);
|
||||
if (OldReg != NewReg)
|
||||
virtRegToEqClass.erase(OldReg);
|
||||
|
||||
do {
|
||||
UV->renameRegister(OldReg, NewReg, SubIdx, TRI);
|
||||
|
Loading…
Reference in New Issue
Block a user