aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-11-01 05:11:00 +0000
committerBill Wendling <isanbard@gmail.com>2011-11-01 05:11:00 +0000
commitc3deb510f8d23ddbc9217a54760e4bff38ddef09 (patch)
tree89c567ec17204419b2b4660b9a098fca061b5841
parent3092965eb491e502b9b2c6189b89c8a0f3775cfd (diff)
Merging r143290:
------------------------------------------------------------------------ r143290 | d0k | 2011-10-29 12:43:38 -0700 (Sat, 29 Oct 2011) | 3 lines PPC: Disable moves for all CR subregisters. Should fix assertion failures on ppc buildbots. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143451 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCFrameLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCFrameLowering.cpp b/lib/Target/PowerPC/PPCFrameLowering.cpp
index 7dead10c7c..0b85fea657 100644
--- a/lib/Target/PowerPC/PPCFrameLowering.cpp
+++ b/lib/Target/PowerPC/PPCFrameLowering.cpp
@@ -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);