OSDN Git Service

[X86] Improve combineCastedMaskArithmetic to fold (bitcast (vXi1 (and/or/xor X, C...
authorCraig Topper <craig.topper@intel.com>
Thu, 8 Feb 2018 22:26:39 +0000 (22:26 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 8 Feb 2018 22:26:39 +0000 (22:26 +0000)
commit1a2742d054e8fd411b7f3e8b96527a8b6a9fb36a
tree270b80efe56ff010a929d505995350348786d027
parente4e4fc4ec237a359222becaeae69c92f18f7a499
[X86] Improve combineCastedMaskArithmetic to fold (bitcast (vXi1 (and/or/xor X, C)))->(vXi1 (and/or/xor (bitcast X), (bitcast C)) where C is a constant build_vector.

Most vxi1 constant build vectors have to be implemented in the scalar domain anyway so we'll probably end up with a cast there later. But by then its too late to do the combine to get rid of it.

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