diff options
author | Juergen Ributzka <juergen@apple.com> | 2013-09-05 23:02:56 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2013-09-05 23:02:56 +0000 |
commit | d7174719a9d5bec7f0c999cd12249d3a918d7153 (patch) | |
tree | f482f1f9a1fac20cde82e10f75b7ac7816969999 /test | |
parent | d8e2f1757d9ececd7937406596fec8e4ebfb7d46 (diff) | |
download | llvm-d7174719a9d5bec7f0c999cd12249d3a918d7153.tar.gz llvm-d7174719a9d5bec7f0c999cd12249d3a918d7153.tar.bz2 llvm-d7174719a9d5bec7f0c999cd12249d3a918d7153.tar.xz |
[X86] Perform VSELECT DAG combines also before DAG type legalization.
If the DAG already has only legal types, then the second round of DAG combines
is skipped. In this case VSELECT+SETCC patterns that match a more efficient
instruction (e.g. min/max) are never recognized.
This fix allows VSELECT+SETCC combines if the types are already legal before DAG
type legalization.
Reviewer: Nadav
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/X86/avx512-vec-cmp.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CodeGen/X86/avx512-vec-cmp.ll b/test/CodeGen/X86/avx512-vec-cmp.ll index c9747a3e94..6ca5bcc3b8 100644 --- a/test/CodeGen/X86/avx512-vec-cmp.ll +++ b/test/CodeGen/X86/avx512-vec-cmp.ll @@ -104,8 +104,7 @@ define <8 x float> @test10(<8 x float> %x, <8 x float> %y) nounwind { } ; CHECK-LABEL: test11_unsigned -; CHECK: vpcmpnleud %zmm -; CHECK: vpblendmd %zmm +; CHECK: vpmaxud ; CHECK: ret define <8 x i32> @test11_unsigned(<8 x i32> %x, <8 x i32> %y) nounwind { %mask = icmp ugt <8 x i32> %x, %y |