[llvm-commits] [llvm] r143290 - /llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp

Benjamin Kramer benny.kra at googlemail.com
Sat Oct 29 12:43:38 PDT 2011


Author: d0k
Date: Sat Oct 29 14:43:38 2011
New Revision: 143290

URL: http://llvm.org/viewvc/llvm-project?rev=143290&view=rev
Log:
PPC: Disable moves for all CR subregisters.

Should fix assertion failures on ppc buildbots.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp?rev=143290&r1=143289&r2=143290&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCFrameLowering.cpp Sat Oct 29 14:43:38 2011
@@ -490,10 +490,8 @@
 
       // 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);





More information about the llvm-commits mailing list