]> granicus.if.org Git - clang/commit
[X86] Avoid passing _mm_undefined* to builtin_shufflevector if we are able to pass...
authorCraig Topper <craig.topper@intel.com>
Mon, 4 Jun 2018 19:28:09 +0000 (19:28 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 4 Jun 2018 19:28:09 +0000 (19:28 +0000)
commitedfb78dee78bc88f0e0aa12f1967b24f5d8f45ee
tree2ac550b60010deaf72e0428e0c6e0738f899333f
parent51f877dbebe07f539f3f24acb88ef4f3f0737339
[X86] Avoid passing _mm_undefined* to builtin_shufflevector if we are able to pass the first input a second time.

This is more consistent with other usages of builtin_shufflevector. Later optimization passes or codegen will detect the duplicate vector and replace it with undef. Using _mm_undefined just puts a zeroinitializer that still needs to be optimized out later.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333944 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/avx512bwintrin.h
lib/Headers/avx512dqintrin.h
lib/Headers/avx512fintrin.h
lib/Headers/avx512vldqintrin.h
test/CodeGen/avx512bw-builtins.c
test/CodeGen/avx512dq-builtins.c
test/CodeGen/avx512f-builtins.c
test/CodeGen/avx512vldq-builtins.c