Make register scavenging happy by not using a reg (CR0) that isn't defined
authorNate Begeman <natebegeman@mac.com>
Wed, 13 Feb 2008 02:58:33 +0000 (02:58 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 13 Feb 2008 02:58:33 +0000 (02:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47045 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.td

index 616c0e7b4c82e8cea64a428d52bcd7103099c110..212268ce96cd157751bcd44b207cc7b783224549 100644 (file)
@@ -293,7 +293,7 @@ def memrix : Operand<iPTR> {   // memri where the imm is shifted 2 bits.
 // PowerPC Predicate operand.  20 = (0<<5)|20 = always, CR0 is a dummy reg
 // that doesn't matter.
 def pred : PredicateOperand<OtherVT, (ops imm, CRRC),
-                                     (ops (i32 20), CR0)> {
+                                     (ops (i32 20), (i32 zero_reg))> {
   let PrintMethod = "printPredicateOperand";
 }