Index: lib/Target/X86/X86ScheduleBtVer2.td =================================================================== --- lib/Target/X86/X86ScheduleBtVer2.td +++ lib/Target/X86/X86ScheduleBtVer2.td @@ -400,8 +400,8 @@ defm : JWriteResFpuPair; defm : JWriteResYMMPair; defm : X86WriteResPairUnsupported; -defm : JWriteResFpuPair; -defm : JWriteResYMMPair; +defm : JWriteResFpuPair; // +1cy latency. +defm : JWriteResYMMPair; // +1cy latency. defm : X86WriteResPairUnsupported; defm : JWriteResFpuPair; defm : JWriteResYMMPair; Index: test/CodeGen/X86/avx-schedule.ll =================================================================== --- test/CodeGen/X86/avx-schedule.ll +++ 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: test/tools/llvm-mca/X86/BtVer2/resources-avx1.s =================================================================== --- test/tools/llvm-mca/X86/BtVer2/resources-avx1.s +++ 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