---
id: pr-tilelang-1801
repo: tile-ai/tilelang
pr: 1801
title: '[BugFix] Missing Recursive Loop Var Checking in Loop Unswitching'
author: kurisu6912
date: '2026-02-06'
url: https://github.com/tile-ai/tilelang/pull/1801
source_category: upstream-code
architectures:
- sm100
tags:
- fused-op
techniques:
- kernel-fusion
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: c47d6df3791bba2b567fc63ff7fe881edffde5b8
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- src/transform/loop_unswitching.cc
- testing/python/transform/test_tilelang_transform_loop_unswitching.py
artifact_dir: evidence/pull-bundles/tilelang/gh-1801
head_ref_oid: b111cf6c28aaff96fb01991be2220e56b6bb7ca1
---
# [BugFix] Missing Recursive Loop Var Checking in Loop Unswitching

- Repository: `tile-ai/tilelang`
- PR: [1801](https://github.com/tile-ai/tilelang/pull/1801)
- 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/loop_unswitching.cc`
- `testing/python/transform/test_tilelang_transform_loop_unswitching.py`

## Evidence Bundle

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