[all-commits] [llvm/llvm-project] deb685: [NVPTX] Pad non-power-of-2 vectors in structs prop...

Justin Lebar via All-commits all-commits at lists.llvm.org
Wed Jun 3 14:37:20 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: deb6854eec93529b2bd30178d400ad2ee7665cd4
      https://github.com/llvm/llvm-project/commit/deb6854eec93529b2bd30178d400ad2ee7665cd4
  Author: Justin Lebar <justin.lebar at gmail.com>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
    M llvm/test/CodeGen/NVPTX/globals_init.ll

  Log Message:
  -----------
  [NVPTX] Pad non-power-of-2 vectors in structs properly. (#201246)

A non-power-of-2 vector inside of a struct is padded up to its alloc
size.

But when the NVPTX asm printer emits bytes for such a struct, it
currently skips this tail padding, thus emitting an incorrect struct.



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