mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-20 09:24:58 +00:00
One more extract_subreg coalescing bug fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -236,7 +236,7 @@ bool SimpleRegisterCoalescing::JoinCopy(MachineInstr *CopyMI,
|
|||||||
// If this is a extract_subreg where dst is a physical register, e.g.
|
// If this is a extract_subreg where dst is a physical register, e.g.
|
||||||
// cl = EXTRACT_SUBREG reg1024, 1
|
// cl = EXTRACT_SUBREG reg1024, 1
|
||||||
// then create and update the actual physical register allocated to RHS.
|
// then create and update the actual physical register allocated to RHS.
|
||||||
const TargetRegisterClass *RC = mf_->getSSARegMap()->getRegClass(SrcReg);
|
const TargetRegisterClass *RC=mf_->getSSARegMap()->getRegClass(repSrcReg);
|
||||||
for (const unsigned *SRs = mri_->getSuperRegisters(repDstReg);
|
for (const unsigned *SRs = mri_->getSuperRegisters(repDstReg);
|
||||||
unsigned SR = *SRs; ++SRs) {
|
unsigned SR = *SRs; ++SRs) {
|
||||||
if (repDstReg == mri_->getSubReg(SR, SubIdx) &&
|
if (repDstReg == mri_->getSubReg(SR, SubIdx) &&
|
||||||
|
Reference in New Issue
Block a user