forked from OSchip/llvm-project
One more extract_subreg coalescing bug fix.
llvm-svn: 43065
This commit is contained in:
parent
5cfc2c640f
commit
c8b5397000
|
@ -236,7 +236,7 @@ bool SimpleRegisterCoalescing::JoinCopy(MachineInstr *CopyMI,
|
|||
// If this is a extract_subreg where dst is a physical register, e.g.
|
||||
// cl = EXTRACT_SUBREG reg1024, 1
|
||||
// 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);
|
||||
unsigned SR = *SRs; ++SRs) {
|
||||
if (repDstReg == mri_->getSubReg(SR, SubIdx) &&
|
||||
|
|
Loading…
Reference in New Issue