[llvm-commits] [llvm] r146022 - /llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

Hal Finkel hfinkel at anl.gov
Tue Dec 6 22:33:58 PST 2011


Author: hfinkel
Date: Wed Dec  7 00:33:57 2011
New Revision: 146022

URL: http://llvm.org/viewvc/llvm-project?rev=146022&view=rev
Log:
set mayStore and mayLoad on CR pseudos

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=146022&r1=146021&r2=146022&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Wed Dec  7 00:33:57 2011
@@ -399,12 +399,14 @@
 
 // SPILL_CR - Indicate that we're dumping the CR register, so we'll need to
 // scavenge a register for it.
-def SPILL_CR : Pseudo<(outs), (ins GPRC:$cond, memri:$F),
+let mayStore = 1 in
+def SPILL_CR : Pseudo<(outs), (ins CRRC:$cond, memri:$F),
                      "", []>;
 
 // RESTORE_CR - Indicate that we're restoring the CR register (previously
 // spilled), so we'll need to scavenge a register for it.
-def RESTORE_CR : Pseudo<(outs GPRC:$cond), (ins memri:$F),
+let mayLoad = 1 in
+def RESTORE_CR : Pseudo<(outs CRRC:$cond), (ins memri:$F),
                      "", []>;
 
 let isTerminator = 1, isBarrier = 1, PPC970_Unit = 7 in {





More information about the llvm-commits mailing list