[all-commits] [llvm/llvm-project] a21abc: [X86] Align i128 to 16 bytes in x86 datalayouts

Harald van Dijk via All-commits all-commits at lists.llvm.org
Wed Oct 11 02:24:13 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a21abc782a8e1cb718a10c471a3b634f3102fc1c
      https://github.com/llvm/llvm-project/commit/a21abc782a8e1cb718a10c471a3b634f3102fc1c
  Author: Harald van Dijk <harald at gigawatt.nl>
  Date:   2023-10-11 (Wed, 11 Oct 2023)

  Changed paths:
    M clang/lib/Basic/Targets/OSTargets.h
    M clang/lib/Basic/Targets/X86.h
    M clang/test/CodeGen/target-data.c
    M llvm/docs/ReleaseNotes.rst
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/Target/X86/X86TargetMachine.cpp
    M llvm/test/Bitcode/upgrade-datalayout.ll
    M llvm/test/Bitcode/upgrade-datalayout2.ll
    M llvm/test/Bitcode/upgrade-datalayout3.ll
    M llvm/test/Bitcode/upgrade-datalayout4.ll
    A llvm/test/Bitcode/upgrade-datalayout5.ll
    M llvm/test/CodeGen/X86/AMX/amx-config.ll
    M llvm/test/CodeGen/X86/arg-copy-elide.ll
    M llvm/test/CodeGen/X86/atomic-idempotent.ll
    M llvm/test/CodeGen/X86/atomic-non-integer.ll
    M llvm/test/CodeGen/X86/atomic-unordered.ll
    M llvm/test/CodeGen/X86/atomic-xor.ll
    M llvm/test/CodeGen/X86/atomic128.ll
    M llvm/test/CodeGen/X86/avx512fp16-cvt.ll
    M llvm/test/CodeGen/X86/bitcast-i256.ll
    M llvm/test/CodeGen/X86/catchpad-dynamic-alloca.ll
    M llvm/test/CodeGen/X86/fp-intrinsics.ll
    M llvm/test/CodeGen/X86/fp128-cast-strict.ll
    M llvm/test/CodeGen/X86/fp128-cast.ll
    M llvm/test/CodeGen/X86/fp128-libcalls-strict.ll
    M llvm/test/CodeGen/X86/fp128-libcalls.ll
    M llvm/test/CodeGen/X86/fpenv-combine.ll
    M llvm/test/CodeGen/X86/fpenv.ll
    M llvm/test/CodeGen/X86/fptosi-sat-scalar.ll
    M llvm/test/CodeGen/X86/fptoui-sat-scalar.ll
    M llvm/test/CodeGen/X86/implicit-null-check.ll
    M llvm/test/CodeGen/X86/osx-private-labels.ll
    M llvm/test/CodeGen/X86/scheduler-backtracking.ll
    M llvm/test/CodeGen/X86/sdiv_fix.ll
    M llvm/test/CodeGen/X86/sdiv_fix_sat.ll
    M llvm/test/CodeGen/X86/setcc-wide-types.ll
    M llvm/test/CodeGen/X86/smul-with-overflow.ll
    M llvm/test/CodeGen/X86/sret-implicit.ll
    M llvm/test/CodeGen/X86/statepoint-deopt-lowering.ll
    M llvm/test/CodeGen/X86/statepoint-vector.ll
    M llvm/test/CodeGen/X86/udiv_fix.ll
    M llvm/test/CodeGen/X86/udiv_fix_sat.ll
    M llvm/test/tools/llvm-lto2/X86/pipeline.ll
    M llvm/test/tools/llvm-lto2/X86/slp-vectorize-pm.ll
    M llvm/test/tools/llvm-lto2/X86/stats-file-option.ll
    M llvm/unittests/Bitcode/DataLayoutUpgradeTest.cpp
    M llvm/unittests/CodeGen/InstrRefLDVTest.cpp

  Log Message:
  -----------
  [X86] Align i128 to 16 bytes in x86 datalayouts

This is an attempt at rebooting https://reviews.llvm.org/D28990

I've included AutoUpgrade changes to modify the data layout to satisfy the compatible layout check. But this does mean alloca, loads, stores, etc in old IR will automatically get this new alignment.

This should fix PR46320.

Reviewed By: echristo, rnk, tmgross

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




More information about the All-commits mailing list