[all-commits] [llvm/llvm-project] bdbf4e: AMDGPU: Use freeze poison instead of undef in allo...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Mar 13 23:41:08 PDT 2025


  Branch: refs/heads/users/arsenm/amdgpu/promote-alloca-use-freeze-poison-instead-of-undef
  Home:   https://github.com/llvm/llvm-project
  Commit: bdbf4edcecd20a758adbaa1659a54e17d724f9b6
      https://github.com/llvm/llvm-project/commit/bdbf4edcecd20a758adbaa1659a54e17d724f9b6
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-03-14 (Fri, 14 Mar 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
    M llvm/test/CodeGen/AMDGPU/promote-alloca-array-aggregate.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-budget-exhausted.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-loadstores.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-max-regs.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-memset.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-multidim.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-non-constant-index.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-pointer-array.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-subvecs.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-vector-to-vector.ll
    M llvm/test/CodeGen/AMDGPU/promote-alloca-vgpr-ratio.ll
    M llvm/test/CodeGen/AMDGPU/sdwa-peephole.ll
    M llvm/test/CodeGen/AMDGPU/vector-alloca-bitcast.ll
    M llvm/test/CodeGen/AMDGPU/vector-alloca-limits.ll

  Log Message:
  -----------
  AMDGPU: Use freeze poison instead of undef in alloca promotion

Previously the value created to represent the uninitialized memory
of the alloca was undef. Use freeze poison instead. Enables some
optimization improvements (which need defeating in the limit tests),
but also a few regressions. Seems to leave behind dead code in some
cases too.



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