OSDN Git Service

[X86] Add DAG combine to promote vXi1 result of a vXi8/vXi16 setcc when we have AVX51...
authorCraig Topper <craig.topper@intel.com>
Sat, 13 Jan 2018 06:24:46 +0000 (06:24 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 13 Jan 2018 06:24:46 +0000 (06:24 +0000)
commit0a340bfcc9d3c61dfba7aac1450cf8564304b903
tree519e5046b3384f8bd9bec50189923bacac73a066
parent66a7ae17e9c46f7dd54d9f226ea7e2ff24557e3a
[X86] Add DAG combine to promote vXi1 result of a vXi8/vXi16 setcc when we have AVX512 but not BWI.

This avoids having the result type stick around until lowering where we have to extend the setcc and insert a truncate. If we get the types converted early we can do more to optimize it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322432 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512vl-vec-masked-cmp.ll
test/CodeGen/X86/vector-compare-results.ll