summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-01-02 21:38:26 +0000
committerHal Finkel <hfinkel@anl.gov>2014-01-02 21:38:26 +0000
commit1d429f2ee0fe16eb08d62a870767908f414b0062 (patch)
treed7e240adc68fff96b3b3a306f2706182f3711413 /llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
parentd8beca3b785bd3c9a68bf020443d2f226e9085ce (diff)
downloadbcm5719-llvm-1d429f2ee0fe16eb08d62a870767908f414b0062.tar.gz
bcm5719-llvm-1d429f2ee0fe16eb08d62a870767908f414b0062.zip
[PPC] Fix the scheduling of CR logicals on the P7
CR logicals (crand, crxor, etc.) on the P7 need to be in the first slot of each dispatch group. The old itinerary entry was just wrong (but has not mattered because we don't generate these instructions). This will matter when, in an upcoming commit, we start generating these instructions. llvm-svn: 198359
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp b/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
index 0c07fd33405..37c85b37351 100644
--- a/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
+++ b/llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
@@ -128,6 +128,7 @@ bool PPCDispatchGroupSBHazardRecognizer::mustComeFirst(const MCInstrDesc *MCID,
default:
// All multi-slot instructions must come first.
return NSlots > 1;
+ case PPC::Sched::IIC_BrCR: // cr logicals
case PPC::Sched::IIC_SprMFCR:
case PPC::Sched::IIC_SprMFCRF:
case PPC::Sched::IIC_SprMTSPR:
OpenPOWER on IntegriCloud