---
id: pr-tilelang-1644
repo: tile-ai/tilelang
pr: 1644
title: '[Feature] Introduce DecoupleTypeCast pass for mixed-precision vectorization'
author: LeiWang1999
date: '2026-01-17'
url: https://github.com/tile-ai/tilelang/pull/1644
source_category: upstream-code
architectures:
- sm100
tags:
- moe
- moe kernel
techniques:
- vectorized-loads
hardware_features: []
kernel_types:
- moe
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 2ff1dd50dc2e9995b48dbc485f16df2394f9dac8
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_indice.py
- examples/fusedmoe/example_fusedmoe_tilelang.py
- examples/minference/regression_vs_sparse_attn.py
- src/op/builtin.cc
- src/op/builtin.h
- src/target/utils.cc
- src/target/utils.h
- src/transform/loop_vectorize.cc
- src/transform/multi_version_buffer_rewriter.cc
- testing/python/transform/test_tilelang_transform_decouple_type_cast.py
- tilelang/engine/phase.py
- tilelang/language/__init__.py
- tilelang/language/loop.py
- tilelang/transform/__init__.py
- tilelang/transform/decouple_type_cast.py
- tilelang/transform/pass_config.py
- tilelang/utils/language.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1644
head_ref_oid: fdfddf3040fb7d775fe672faf47088a945b3c064
---
# [Feature] Introduce DecoupleTypeCast pass for mixed-precision vectorization

- Repository: `tile-ai/tilelang`
- PR: [1644](https://github.com/tile-ai/tilelang/pull/1644)
- 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

- `examples/blocksparse_attention/example_tilelang_sparse_gqa_decode_varlen_indice.py`
- `examples/fusedmoe/example_fusedmoe_tilelang.py`
- `examples/minference/regression_vs_sparse_attn.py`
- `src/op/builtin.cc`
- `src/op/builtin.h`
- `src/target/utils.cc`
- `src/target/utils.h`
- `src/transform/loop_vectorize.cc`
- `src/transform/multi_version_buffer_rewriter.cc`
- `testing/python/transform/test_tilelang_transform_decouple_type_cast.py`
- `tilelang/engine/phase.py`
- `tilelang/language/__init__.py`
- `tilelang/language/loop.py`
- `tilelang/transform/__init__.py`
- `tilelang/transform/decouple_type_cast.py`
- `tilelang/transform/pass_config.py`
- `tilelang/utils/language.py`

## Evidence Bundle

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