PPC: Disable moves for all CR subregisters.

Should fix assertion failures on ppc buildbots.

llvm-svn: 143290
This commit is contained in:
Benjamin Kramer 2011-10-29 19:43:38 +00:00
parent 594ee77964
commit ff91dd9f07
1 changed files with 1 additions and 3 deletions

View File

@ -490,10 +490,8 @@ void PPCFrameLowering::emitPrologue(MachineFunction &MF) const {
// This is a bit of a hack: CR2LT, CR2GT, CR2EQ and CR2UN are just
// subregisters of CR2. We just need to emit a move of CR2.
if (Reg == PPC::CR2LT || Reg == PPC::CR2GT || Reg == PPC::CR2EQ)
if (PPC::CRBITRCRegisterClass->contains(Reg))
continue;
if (Reg == PPC::CR2UN)
Reg = PPC::CR2;
MachineLocation CSDst(MachineLocation::VirtualFP, Offset);
MachineLocation CSSrc(Reg);