[all-commits] [llvm/llvm-project] b9ccd9: [Clang] Remove 3-element vector load and store spe...

Shilei Tian via All-commits all-commits at lists.llvm.org
Fri Aug 16 20:50:51 PDT 2024


  Branch: refs/heads/users/shiltian/no-3-vec-load-store-hack
  Home:   https://github.com/llvm/llvm-project
  Commit: b9ccd96dfda953ed9f04f7c5609418eda6b781e2
      https://github.com/llvm/llvm-project/commit/b9ccd96dfda953ed9f04f7c5609418eda6b781e2
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2024-08-16 (Fri, 16 Aug 2024)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/test/CodeGen/alignment.c
    M clang/test/CodeGen/arm-abi-vector.c
    M clang/test/CodeGen/arm64-abi-vector.c
    M clang/test/CodeGen/builtins-elementwise-math.c
    M clang/test/CodeGenOpenCL/amdgpu-alignment.cl
    M clang/test/CodeGenOpenCL/preserve_vec3.cl
    M clang/test/CodeGenOpenCL/vectorLoadStore.cl
    M clang/test/CodeGenOpenCL/vector_literals.cl

  Log Message:
  -----------
  [Clang] Remove 3-element vector load and store special handling

Clang uses a long-time special handling of the case where  3 element vector loads
and stores are performed as 4 element, and then a shufflevector is used to extract
the used elements. Odd sized vector codegen should now work reasonably well.

This patch removes this special handling, as well as the compiler argument
`-fpreserve-vec3-type`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list