summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/vsx_insert_extract_le.ll
diff options
context:
space:
mode:
authorQingShan Zhang <qshanz@cn.ibm.com>2019-01-03 05:04:18 +0000
committerQingShan Zhang <qshanz@cn.ibm.com>2019-01-03 05:04:18 +0000
commitf24ec7bdd06d583280f285d69280c5c8751103af (patch)
treeb3afa68249c95a42eafd02072488c4d739d64c9d /llvm/test/CodeGen/PowerPC/vsx_insert_extract_le.ll
parent697281df42916d736cc23e74c2a2b2275786c43f (diff)
downloadbcm5719-llvm-f24ec7bdd06d583280f285d69280c5c8751103af.tar.gz
bcm5719-llvm-f24ec7bdd06d583280f285d69280c5c8751103af.zip
[Power9] Enable the Out-of-Order scheduling model for P9 hw
When switched to the MI scheduler for P9, the hardware is modeled as out of order. However, inside the MI Scheduler algorithm, we still use the in-order scheduling model as the MicroOpBufferSize isn't set. The MI scheduler take it as the hw cannot buffer the op. So, only when all the available instructions issued, the pending instruction could be scheduled. That is not true for our P9 hw in fact. This patch is trying to enable the Out-of-Order scheduling model. The buffer size 44 is picked from the P9 hw spec, and the perf test indicate that, its value won't hurt the cpu2017. With this patch, there are 3 specs improved over 3% and 1 spec deg over 3%. The detail is as follows: x264_r: +6.95% cactuBSSN_r: +6.94% lbm_r: +4.11% xz_r: -3.85% And the GEOMEAN for all the C/C++ spec in spec2017 is about 0.18% improved. Reviewer: Nemanjai Differential Revision: https://reviews.llvm.org/D55810 llvm-svn: 350285
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/vsx_insert_extract_le.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/vsx_insert_extract_le.ll16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/PowerPC/vsx_insert_extract_le.ll b/llvm/test/CodeGen/PowerPC/vsx_insert_extract_le.ll
index ef7d8f35007..0c081f744c6 100644
--- a/llvm/test/CodeGen/PowerPC/vsx_insert_extract_le.ll
+++ b/llvm/test/CodeGen/PowerPC/vsx_insert_extract_le.ll
@@ -31,10 +31,10 @@ define <2 x double> @testi0(<2 x double>* %p1, double* %p2) {
;
; CHECK-P9-LABEL: testi0:
; CHECK-P9: # %bb.0:
-; CHECK-P9-NEXT: lfd f0, 0(r4)
-; CHECK-P9-NEXT: lxv vs1, 0(r3)
-; CHECK-P9-NEXT: xxpermdi vs0, f0, f0, 2
-; CHECK-P9-NEXT: xxpermdi v2, vs1, vs0, 1
+; CHECK-P9-NEXT: lfd [[REG:f[0-9]+]], 0(r4)
+; CHECK-P9-NEXT: lxv [[REG1:vs[0-9]+]], 0(r3)
+; CHECK-P9-NEXT: xxpermdi [[REG2:vs[0-9]+]], [[REG]], [[REG]], 2
+; CHECK-P9-NEXT: xxpermdi v2, [[REG1]], [[REG2]], 1
; CHECK-P9-NEXT: blr
%v = load <2 x double>, <2 x double>* %p1
%s = load double, double* %p2
@@ -65,10 +65,10 @@ define <2 x double> @testi1(<2 x double>* %p1, double* %p2) {
;
; CHECK-P9-LABEL: testi1:
; CHECK-P9: # %bb.0:
-; CHECK-P9-NEXT: lfd f0, 0(r4)
-; CHECK-P9-NEXT: lxv vs1, 0(r3)
-; CHECK-P9-NEXT: xxpermdi vs0, f0, f0, 2
-; CHECK-P9-NEXT: xxmrgld v2, vs0, vs1
+; CHECK-P9-NEXT: lfd [[REG:f[0-9]+]], 0(r4)
+; CHECK-P9-NEXT: lxv [[REG1:vs[0-9]+]], 0(r3)
+; CHECK-P9-NEXT: xxpermdi [[REG2:vs[0-9]+]], [[REG]], [[REG]], 2
+; CHECK-P9-NEXT: xxmrgld v2, [[REG2]], [[REG1]]
; CHECK-P9-NEXT: blr
%v = load <2 x double>, <2 x double>* %p1
%s = load double, double* %p2
OpenPOWER on IntegriCloud