summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2011-12-07 06:33:57 +0000
committerHal Finkel <hfinkel@anl.gov>2011-12-07 06:33:57 +0000
commitabbc2529c17514d51bb65a61e9021b46bab77fc5 (patch)
treee7af3ffed8368e8afcfc7e92ffd143dad30b404e /llvm/lib
parent2ba61e47a9334070bc9c160c99f30d4b9da319fe (diff)
downloadbcm5719-llvm-abbc2529c17514d51bb65a61e9021b46bab77fc5.tar.gz
bcm5719-llvm-abbc2529c17514d51bb65a61e9021b46bab77fc5.zip
set mayStore and mayLoad on CR pseudos
llvm-svn: 146022
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index ec54867d494..5b1a1c8526c 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -399,12 +399,14 @@ let usesCustomInserter = 1, // Expanded after instruction selection.
// 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 {
OpenPOWER on IntegriCloud