[X86] Remove the mayLoad and mayStore flags from vzeroupper/vzeroall.

But leave the hasUnmodelledSideEffects flag.
This commit is contained in:
Craig Topper 2020-05-08 12:32:19 -07:00
parent 46d6f76be3
commit 465f5648ee
11 changed files with 22 additions and 22 deletions

View File

@ -1275,9 +1275,9 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
// Vector zero
let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.".
def int_x86_avx_vzeroall : GCCBuiltin<"__builtin_ia32_vzeroall">,
Intrinsic<[], [], []>;
Intrinsic<[], [], [IntrNoMem, IntrHasSideEffects]>;
def int_x86_avx_vzeroupper : GCCBuiltin<"__builtin_ia32_vzeroupper">,
Intrinsic<[], [], []>;
Intrinsic<[], [], [IntrNoMem, IntrHasSideEffects]>;
}
// SIMD load ops

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 1 7 1.50 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 2 2 1.00 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 2 7 1.50 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 32 90 8.00 * * U vzeroall
# CHECK-NEXT: 16 46 4.00 * * U vzeroupper
# CHECK-NEXT: 32 90 8.00 U vzeroall
# CHECK-NEXT: 16 46 4.00 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0.0] - PdAGLU01

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 2 6 1.00 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 1 1 1.00 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 2 7 1.00 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 20 8 1.00 * * U vzeroall
# CHECK-NEXT: 4 0 1.00 * * U vzeroupper
# CHECK-NEXT: 20 8 1.00 U vzeroall
# CHECK-NEXT: 4 0 1.00 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0] - BWDivider

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 1 6 1.00 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 2 1 1.00 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 2 6 2.00 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 73 90 36.50 * * U vzeroall
# CHECK-NEXT: 37 46 18.50 * * U vzeroupper
# CHECK-NEXT: 73 90 36.50 U vzeroall
# CHECK-NEXT: 37 46 18.50 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0] - JALU0

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 2 7 1.00 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 1 1 1.00 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 2 8 1.00 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 20 9 2.00 * * U vzeroall
# CHECK-NEXT: 4 1 1.00 * * U vzeroupper
# CHECK-NEXT: 20 9 2.00 U vzeroall
# CHECK-NEXT: 4 1 1.00 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0] - SBDivider

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 2 7 1.00 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 1 1 1.00 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 2 8 1.00 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 20 8 1.00 * * U vzeroall
# CHECK-NEXT: 4 0 1.00 * * U vzeroupper
# CHECK-NEXT: 20 8 1.00 U vzeroall
# CHECK-NEXT: 4 0 1.00 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0] - HWDivider

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 2 7 1.00 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 1 1 1.00 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 2 8 1.00 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 20 9 2.00 * * U vzeroall
# CHECK-NEXT: 4 1 1.00 * * U vzeroupper
# CHECK-NEXT: 20 9 2.00 U vzeroall
# CHECK-NEXT: 4 1 1.00 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0] - SBDivider

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 2 7 0.50 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 1 1 0.33 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 2 8 0.50 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 16 16 4.00 * * U vzeroall
# CHECK-NEXT: 4 0 0.67 * * U vzeroupper
# CHECK-NEXT: 16 16 4.00 U vzeroall
# CHECK-NEXT: 4 0 0.67 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0] - SKLDivider

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 2 7 0.50 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 1 1 0.33 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 2 8 0.50 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 34 12 5.00 * * U vzeroall
# CHECK-NEXT: 4 0 0.67 * * U vzeroupper
# CHECK-NEXT: 34 12 5.00 U vzeroall
# CHECK-NEXT: 4 0 0.67 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0] - SKXDivider

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 1 8 0.50 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 1 1 0.25 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 1 8 0.50 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 1 100 0.25 * * U vzeroall
# CHECK-NEXT: 1 100 0.25 * * U vzeroupper
# CHECK-NEXT: 1 100 0.25 U vzeroall
# CHECK-NEXT: 1 100 0.25 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0] - ZnAGU0

View File

@ -1719,8 +1719,8 @@ vzeroupper
# CHECK-NEXT: 1 8 0.33 * vxorps (%rax), %xmm1, %xmm2
# CHECK-NEXT: 1 1 0.25 vxorps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 1 8 0.33 * vxorps (%rax), %ymm1, %ymm2
# CHECK-NEXT: 1 100 0.25 * * U vzeroall
# CHECK-NEXT: 1 1 0.25 * * U vzeroupper
# CHECK-NEXT: 1 100 0.25 U vzeroall
# CHECK-NEXT: 1 1 0.25 U vzeroupper
# CHECK: Resources:
# CHECK-NEXT: [0] - Zn2AGU0