[Feature] Add PassConfig for Controlling Let Statement Inlining in Simplify Pass #1769
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
enable_simplify_let_inlineto the TileLang Simplify pass that controls whether let statements should be inlined during simplificationPassConfigKeyenum inpass_config.pywith comprehensive sub-config keys for all Simplify pass optionsChanges
C++ Changes (
src/transform/simplify.cc)enable_simplify_let_inlinefield toSimplifyConfigNodewith default valuetrueCanInlineLetStmtto check the config before allowing let statement inliningPython Changes (
tilelang/transform/pass_config.py)TL_SIMPLIFYdocumentation to accurately describe the dict-based configuration structureTL_SIMPLIFY_TRANSITIVELY_PROVE_INEQUALITIESTL_SIMPLIFY_CONVERT_BOOLEAN_TO_AND_OF_ORSTL_SIMPLIFY_APPLY_CONSTRAINTS_TO_BOOLEAN_BRANCHESTL_SIMPLIFY_PROPAGATE_KNOWNS_TO_PROVE_CONDITIONALTL_SIMPLIFY_PROPAGATE_KNOWNS_TO_SIMPLIFY_EXPRESSIONSTL_SIMPLIFY_ENABLE_LET_INLINETest Changes (
testing/python/transform/test_tilelang_transform_simplify.py)PassConfigKeyenum values instead of hardcoded stringsenable_simplify_let_inlineconfigurationUsage
Test plan
test_tilelang_transform_simplify.py🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
New Features
Tests