SuccessChanges

Summary

  1. Use unary CreateShuffleVector if possible (details)
  2. clang-format, address warnings (details)
Commit 9b29610228c838a66a88edf43ddd25acf8d1b477 by aqjune
Use unary CreateShuffleVector if possible

As mentioned in D93793, there are quite a few places where unary `IRBuilder::CreateShuffleVector(X, Mask)` can be used
instead of `IRBuilder::CreateShuffleVector(X, Undef, Mask)`.
Let's update them.

Actually, it would have been more natural if the patches were made in this order:
(1) let them use unary CreateShuffleVector first
(2) update IRBuilder::CreateShuffleVector to use poison as a placeholder value (D93793)

The order is swapped, but in terms of correctness it is still fine.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D93923
The file was modifiedllvm/test/Transforms/SROA/vector-promotion.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/invariant-store-vectorization.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-float-contraction.ll
The file was modifiedclang/test/CodeGen/X86/avx2-builtins.c
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-double-contraction-fmf.ll
The file was modifiedclang/test/CodeGen/X86/avx512dq-builtins.c
The file was modifiedclang/test/CodeGen/arm64-abi-vector.c
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-float-contraction-fmf.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/transpose-i32-row-major.ll
The file was modifiedclang/test/CodeGen/X86/avx512vlbw-builtins.c
The file was modifiedllvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
The file was modifiedllvm/test/Transforms/InterleavedAccess/AArch64/interleaved-accesses.ll
The file was modifiedclang/test/CodeGenOpenCL/as_type.cl
The file was modifiedllvm/test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts-inseltpoison.ll
The file was modifiedclang/test/CodeGen/X86/avx512-reduceMinMaxIntrin.c
The file was modifiedclang/test/CodeGen/X86/sse2-builtins.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmovn.c
The file was modifiedllvm/test/Transforms/InterleavedAccess/ARM/interleaved-accesses.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AMDGPU/horizontal-store.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-add-sub-double-row-major.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/select-reduction.ll
The file was modifiedllvm/lib/Analysis/VectorUtils.cpp
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/strided-store-double.ll
The file was modifiedclang/test/CodeGen/X86/avx512vl-builtins.c
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-double-contraction.ll
The file was modifiedclang/test/CodeGen/X86/avx512vldq-builtins.c
The file was modifiedclang/test/CodeGenOpenCL/preserve_vec3.cl
The file was modifiedclang/lib/CodeGen/CGExpr.cpp
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/strided-load-float.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AMDGPU/reduction.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/AMDGPU/packed-math.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused-volatile.ll
The file was modifiedllvm/test/CodeGen/Generic/expand-experimental-reductions.ll
The file was modifiedllvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
The file was modifiedllvm/test/Instrumentation/MemorySanitizer/clmul.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/strided-store-i32.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/transpose-double-row-major.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/propagate-backward.ll
The file was modifiedclang/test/CodeGen/X86/avx512bw-builtins.c
The file was modifiedllvm/test/Transforms/InterleavedAccess/X86/interleavedStore-inseltpoison.ll
The file was modifiedllvm/lib/Transforms/Scalar/SROA.cpp
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/store-align-volatile.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-float.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/interleaved-accesses.ll
The file was modifiedllvm/test/CodeGen/AArch64/aarch64-interleaved-ld-combine.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/rewrite-out-arguments.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/strided-load-double.ll
The file was modifiedllvm/unittests/IR/PatternMatch.cpp
The file was modifiedclang/lib/CodeGen/CGExprScalar.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/PowerPC/widened-massv-call.ll
The file was modifiedclang/test/CodeGen/X86/f16c-builtins.c
The file was modifiedllvm/test/Transforms/InterleavedAccess/ARM/interleaved-accesses-inseltpoison.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
The file was modifiedllvm/test/Transforms/InstCombine/canonicalize-vector-insert.ll
The file was modifiedclang/test/CodeGen/X86/f16c-builtins-constrained.c
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/strided-load-i32.ll
The file was modifiedclang/test/CodeGen/X86/avx512vl-builtins-constrained.c
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
The file was modifiedllvm/test/Transforms/PhaseOrdering/X86/vector-reductions-expanded.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/propagate-mixed-users.ll
The file was modifiedllvm/lib/CodeGen/InterleavedLoadCombinePass.cpp
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vrev.c
The file was modifiedllvm/test/Transforms/LoopVectorize/float-minmax-instruction-flag.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/transpose-double.ll
The file was modifiedclang/test/CodeGenOpenCL/partial_initializer.cl
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/sphinx.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/PowerPC/widened-massv-vfabi-attr.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-double.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-double-row-major.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/load-align-volatile.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/const-gep.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/rewrite-out-arguments-address-space.ll
The file was modifiedllvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/lower-kernargs.ll
The file was modifiedllvm/test/Transforms/InterleavedAccess/AArch64/interleaved-accesses-inseltpoison.ll
The file was modifiedclang/test/CodeGen/X86/avx512f-builtins.c
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/bigger-expressions-double.ll
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmovl.c
The file was modifiedclang/test/CodeGenOpenCL/vectorLoadStore.cl
The file was modifiedllvm/lib/Target/X86/X86InterleavedAccess.cpp
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-i32.ll
The file was modifiedllvm/test/Transforms/InterleavedAccess/X86/interleavedStore.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
The file was modifiedllvm/test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/strided-store-float.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/propagate-backwards-unsupported.ll
The file was modifiedllvm/lib/Transforms/Utils/LoopUtils.cpp
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-i32-row-major.ll
The file was modifiedllvm/lib/CodeGen/CodeGenPrepare.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/reduction.ll
The file was modifiedclang/test/CodeGen/X86/avx-builtins.c
The file was modifiedllvm/lib/IR/AutoUpgrade.cpp
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/transpose-i32.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/transpose-float-row-major.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/transpose-float.ll
The file was modifiedclang/test/CodeGenOpenCL/vector_literals_valid.cl
Commit 420d046d6bdd8d950dad389a97e31f841052efb2 by aqjune
clang-format, address warnings
The file was modifiedclang/test/CodeGen/X86/avx512vl-builtins-constrained.c
The file was modifiedclang/test/CodeGen/X86/avx512f-builtins.c
The file was modifiedllvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
The file was modifiedclang/test/CodeGen/arm64-abi-vector.c
The file was modifiedllvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
The file was modifiedclang/test/CodeGen/X86/avx512-reduceMinMaxIntrin.c
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
The file was modifiedllvm/lib/IR/AutoUpgrade.cpp