diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-03-29 06:55:28 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-03-29 06:55:28 +0000 |
| commit | d284606327a58fd4684a63b126079938ff4513cc (patch) | |
| tree | b95dbfdbe21b923ee8805237ec26b8baec7fed2f /llvm/test/CodeGen/X86/avx512-ext.ll | |
| parent | 60c24878748987d193c91a863a3dc822ee664afc (diff) | |
| download | bcm5719-llvm-d284606327a58fd4684a63b126079938ff4513cc.tar.gz bcm5719-llvm-d284606327a58fd4684a63b126079938ff4513cc.zip | |
[AVX-512] Remove explicit KMOVWrk/KMOVWKr instructions from patterns where we can just use COPY_TO_REGCLASS instead.
This will result in a KMOVW or KMOVD being emitted during register allocation. And in at least some cases this might allow the register coalescer to remove the copy all together.
llvm-svn: 298984
Diffstat (limited to 'llvm/test/CodeGen/X86/avx512-ext.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/avx512-ext.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/avx512-ext.ll b/llvm/test/CodeGen/X86/avx512-ext.ll index 2f56ad4c15c..796ee83b6fa 100644 --- a/llvm/test/CodeGen/X86/avx512-ext.ll +++ b/llvm/test/CodeGen/X86/avx512-ext.ll @@ -1448,7 +1448,7 @@ define i16 @trunc_i32_to_i1(i32 %a) { ; SKX-LABEL: trunc_i32_to_i1: ; SKX: ## BB#0: ; SKX-NEXT: andl $1, %edi -; SKX-NEXT: kmovw %edi, %k0 +; SKX-NEXT: kmovd %edi, %k0 ; SKX-NEXT: movw $-4, %ax ; SKX-NEXT: kmovd %eax, %k1 ; SKX-NEXT: kshiftrw $1, %k1, %k1 |

