[all-commits] [llvm/llvm-project] 831592: [NVPTX] Fixup under-aligned dynamic alloca lowerin...

Alex MacLean via All-commits all-commits at lists.llvm.org
Tue May 13 09:57:02 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 831592d6171bc62f6991387546512b9cf2ce1c9e
      https://github.com/llvm/llvm-project/commit/831592d6171bc62f6991387546512b9cf2ce1c9e
  Author: Alex MacLean <amaclean at nvidia.com>
  Date:   2025-05-13 (Tue, 13 May 2025)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
    M llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
    M llvm/test/CodeGen/NVPTX/dynamic-stackalloc-regression.ll
    M llvm/test/CodeGen/NVPTX/dynamic_stackalloc.ll

  Log Message:
  -----------
  [NVPTX] Fixup under-aligned dynamic alloca lowering (#139628)

The alignment on a ISD::DYNAMIC_STACKALLOC node may be 0 to indicate
that the default stack alignment should be used. Prior to this change,
we passed this alignment through unchanged leading to an error in
ptxas. Now, we use the stack-alignment in this case. Also did a little
cleanup while I'm here.



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