[all-commits] [llvm/llvm-project] de0e31: [SystemZ] Improve handling of vector alignments.

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Thu Sep 8 08:35:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de0e3117d40af95993b11d0622f9700415552d48
      https://github.com/llvm/llvm-project/commit/de0e3117d40af95993b11d0622f9700415552d48
  Author: Jonas Paulsson <paulsson at linux.vnet.ibm.com>
  Date:   2022-09-08 (Thu, 08 Sep 2022)

  Changed paths:
    M clang/lib/Basic/Targets/SystemZ.h
    A clang/test/CodeGen/SystemZ/align-systemz-02.c
    M clang/test/CodeGen/target-data.c
    M llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
    M llvm/test/CodeGen/SystemZ/function-attributes-01.ll
    M llvm/test/CodeGen/SystemZ/vec-abi-align.ll

  Log Message:
  -----------
  [SystemZ] Improve handling of vector alignments.

Make the DataLayout string always hold a vector alignment of 8 bytes,
regardless of the vector ABI. This makes the datalayout depend only on the
target triple which is the general expectation (in assertions).

On older architectures where vectors use the natural alignment (16 bytes),
the front end will maintain the same behavior and produce an overalignment
compared to the datalayout.

Reviewed By: uweigand

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




More information about the All-commits mailing list