[PATCH] D57022: [X86][BtVer2] X86ISD::VPERMILPV has local forwarding disabled
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 22 05:14:25 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL351815: [X86][BtVer2] X86ISD::VPERMILPV has local forwarding disabled (authored by RKSimon, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D57022?vs=182802&id=182893#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57022/new/
https://reviews.llvm.org/D57022
Files:
llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td
llvm/trunk/test/CodeGen/X86/avx-schedule.ll
llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-avx1.s
Index: llvm/trunk/test/CodeGen/X86/avx-schedule.ll
===================================================================
--- llvm/trunk/test/CodeGen/X86/avx-schedule.ll
+++ llvm/trunk/test/CodeGen/X86/avx-schedule.ll
@@ -4258,8 +4258,8 @@
;
; BTVER2-LABEL: test_permilvarpd:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: vpermilpd %xmm1, %xmm0, %xmm0 # sched: [2:2.00]
-; BTVER2-NEXT: vpermilpd (%rdi), %xmm0, %xmm0 # sched: [7:2.00]
+; BTVER2-NEXT: vpermilpd %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BTVER2-NEXT: vpermilpd (%rdi), %xmm0, %xmm0 # sched: [8:2.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-LABEL: test_permilvarpd:
@@ -4319,8 +4319,8 @@
;
; BTVER2-LABEL: test_permilvarpd_ymm:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: vpermilpd %ymm1, %ymm0, %ymm0 # sched: [3:3.00]
-; BTVER2-NEXT: vpermilpd (%rdi), %ymm0, %ymm0 # sched: [8:3.00]
+; BTVER2-NEXT: vpermilpd %ymm1, %ymm0, %ymm0 # sched: [4:3.00]
+; BTVER2-NEXT: vpermilpd (%rdi), %ymm0, %ymm0 # sched: [9:3.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-LABEL: test_permilvarpd_ymm:
@@ -4380,8 +4380,8 @@
;
; BTVER2-LABEL: test_permilvarps:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: vpermilps %xmm1, %xmm0, %xmm0 # sched: [2:2.00]
-; BTVER2-NEXT: vpermilps (%rdi), %xmm0, %xmm0 # sched: [7:2.00]
+; BTVER2-NEXT: vpermilps %xmm1, %xmm0, %xmm0 # sched: [3:2.00]
+; BTVER2-NEXT: vpermilps (%rdi), %xmm0, %xmm0 # sched: [8:2.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-LABEL: test_permilvarps:
@@ -4441,8 +4441,8 @@
;
; BTVER2-LABEL: test_permilvarps_ymm:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: vpermilps %ymm1, %ymm0, %ymm0 # sched: [3:3.00]
-; BTVER2-NEXT: vpermilps (%rdi), %ymm0, %ymm0 # sched: [8:3.00]
+; BTVER2-NEXT: vpermilps %ymm1, %ymm0, %ymm0 # sched: [4:3.00]
+; BTVER2-NEXT: vpermilps (%rdi), %ymm0, %ymm0 # sched: [9:3.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-LABEL: test_permilvarps_ymm:
Index: llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-avx1.s
===================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-avx1.s
+++ llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-avx1.s
@@ -1433,20 +1433,20 @@
# CHECK-NEXT: 2 6 1.00 * vperm2f128 $1, (%rax), %ymm1, %ymm2
# CHECK-NEXT: 1 1 0.50 vpermilpd $1, %xmm0, %xmm2
# CHECK-NEXT: 1 6 1.00 * vpermilpd $1, (%rax), %xmm2
-# CHECK-NEXT: 3 2 2.00 vpermilpd %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: 3 7 2.00 * vpermilpd (%rax), %xmm1, %xmm2
+# CHECK-NEXT: 3 3 2.00 vpermilpd %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: 3 8 2.00 * vpermilpd (%rax), %xmm1, %xmm2
# CHECK-NEXT: 2 1 1.00 vpermilpd $1, %ymm0, %ymm2
# CHECK-NEXT: 2 6 2.00 * vpermilpd $1, (%rax), %ymm2
-# CHECK-NEXT: 6 3 3.00 vpermilpd %ymm0, %ymm1, %ymm2
-# CHECK-NEXT: 6 8 3.00 * vpermilpd (%rax), %ymm1, %ymm2
+# CHECK-NEXT: 6 4 3.00 vpermilpd %ymm0, %ymm1, %ymm2
+# CHECK-NEXT: 6 9 3.00 * vpermilpd (%rax), %ymm1, %ymm2
# CHECK-NEXT: 1 1 0.50 vpermilps $1, %xmm0, %xmm2
# CHECK-NEXT: 1 6 1.00 * vpermilps $1, (%rax), %xmm2
-# CHECK-NEXT: 3 2 2.00 vpermilps %xmm0, %xmm1, %xmm2
-# CHECK-NEXT: 3 7 2.00 * vpermilps (%rax), %xmm1, %xmm2
+# CHECK-NEXT: 3 3 2.00 vpermilps %xmm0, %xmm1, %xmm2
+# CHECK-NEXT: 3 8 2.00 * vpermilps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 2 1 1.00 vpermilps $1, %ymm0, %ymm2
# CHECK-NEXT: 2 6 2.00 * vpermilps $1, (%rax), %ymm2
-# CHECK-NEXT: 6 3 3.00 vpermilps %ymm0, %ymm1, %ymm2
-# CHECK-NEXT: 6 8 3.00 * vpermilps (%rax), %ymm1, %ymm2
+# CHECK-NEXT: 6 4 3.00 vpermilps %ymm0, %ymm1, %ymm2
+# CHECK-NEXT: 6 9 3.00 * vpermilps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 1 3 1.00 vpextrb $1, %xmm0, %ecx
# CHECK-NEXT: 1 3 1.00 * vpextrb $1, %xmm0, (%rax)
# CHECK-NEXT: 1 3 1.00 vpextrd $1, %xmm0, %ecx
Index: llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td
===================================================================
--- llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td
+++ llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td
@@ -400,8 +400,8 @@
defm : JWriteResFpuPair<WriteFShuffle, [JFPU01, JFPX], 1>;
defm : JWriteResYMMPair<WriteFShuffleY, [JFPU01, JFPX], 1, [2, 2], 2>;
defm : X86WriteResPairUnsupported<WriteFShuffleZ>;
-defm : JWriteResFpuPair<WriteFVarShuffle, [JFPU01, JFPX], 2, [1, 4], 3>;
-defm : JWriteResYMMPair<WriteFVarShuffleY,[JFPU01, JFPX], 3, [2, 6], 6>;
+defm : JWriteResFpuPair<WriteFVarShuffle, [JFPU01, JFPX], 3, [1, 4], 3>; // +1cy latency.
+defm : JWriteResYMMPair<WriteFVarShuffleY,[JFPU01, JFPX], 4, [2, 6], 6>; // +1cy latency.
defm : X86WriteResPairUnsupported<WriteFVarShuffleZ>;
defm : JWriteResFpuPair<WriteFBlend, [JFPU01, JFPX], 1>;
defm : JWriteResYMMPair<WriteFBlendY, [JFPU01, JFPX], 1, [2, 2], 2>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57022.182893.patch
Type: text/x-patch
Size: 5636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190122/6575a797/attachment.bin>
More information about the llvm-commits
mailing list