[all-commits] [llvm/llvm-project] 2717cc: [NVPTX] Merge consecutive elements while buffering...
Karthik Senthil via All-commits
all-commits at lists.llvm.org
Thu Apr 9 13:15:03 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2717cc2234c898556cb38809cc599ea2108b163a
https://github.com/llvm/llvm-project/commit/2717cc2234c898556cb38809cc599ea2108b163a
Author: Karthik Senthil <ksenthilkuma at nvidia.com>
Date: 2026-04-09 (Thu, 09 Apr 2026)
Changed paths:
M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.h
A llvm/test/CodeGen/NVPTX/sub-byte-constant-vector-convert.ll
A llvm/test/CodeGen/NVPTX/sub-byte-constant-vectors-i4-i2.ll
Log Message:
-----------
[NVPTX] Merge consecutive elements while buffering constant vectors with sub-byte datatype. (#183628)
NVPTXAsmPrinter currently buffers one element at a time while generating
PTX for constant global vectors. This causes an assertion when dealing
with sub-byte datatype (like i4) since we allocate lesser buffer size.
This PR fixes the printer to merge consecutive elements to form a full
byte before buffering.
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