]> granicus.if.org Git - llvm/commit
[X86] Lower vselect with constant condition to vector_shuffle even with AVX512 instru...
authorCraig Topper <craig.topper@intel.com>
Sun, 15 Oct 2017 06:39:07 +0000 (06:39 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 15 Oct 2017 06:39:07 +0000 (06:39 +0000)
commita3b7b28d09561cdba18591ebdb8efd72a5c1e9e1
tree48e8691c222850679a118bffe82c1cc8fa2a66f5
parent37bf8530346faf7459ce5244ab8ba968cb1030ef
[X86] Lower vselect with constant condition to vector_shuffle even with AVX512 instructions.

Summary:
It's better to use our shuffle lowering code to handle these than loading an immediate into a k-register.

It really feels like this should be a DAG combine optimization rather than a lowering operation, but that's a problem for another day.

Reviewers: RKSimon, delena, zvi

Reviewed By: delena

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D38932

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315849 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx512-mask-op.ll
test/CodeGen/X86/avx512-schedule.ll
test/CodeGen/X86/vector-shuffle-combining-avx2.ll