---
id: pr-tilelang-1987
repo: tile-ai/tilelang
pr: 1987
title: 'fix(merge_shmem): allow shared memory reuse for buffers with disjoint lifetimes'
author: reoLantern
date: '2026-03-29'
url: https://github.com/tile-ai/tilelang/pull/1987
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- attention kernel
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 3a956e0e6f29660ebdb1436889db4cfcb9b6ce43
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- src/transform/merge_shared_memory_allocations.cc
artifact_dir: evidence/pull-bundles/tilelang/gh-1987
head_ref_oid: 92c6957dd98ca00bd3f64c3358ba59560f346ad6
---
# fix(merge_shmem): allow shared memory reuse for buffers with disjoint lifetimes

- Repository: `tile-ai/tilelang`
- PR: [1987](https://github.com/tile-ai/tilelang/pull/1987)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `src/transform/merge_shared_memory_allocations.cc`

## Evidence Bundle

`evidence/pull-bundles/tilelang/gh-1987`
