Skip to content

[Pass] Add dead code elimination pass for Tilus IR#92

Merged
yaoyaoding merged 1 commit intomainfrom
dce
Mar 12, 2026
Merged

[Pass] Add dead code elimination pass for Tilus IR#92
yaoyaoding merged 1 commit intomainfrom
dce

Conversation

@yaoyaoding
Copy link
Member

Implement a DCE pass that removes functional instructions whose output tensors are never consumed, and TensorItemValueStmt/TensorItemPtrStmt whose bound Vars are never referenced. Uses a two-pass approach:

  1. Collect used tensors via IRVisitor with fixed-point propagation
  2. Eliminate dead instructions/stmts via IRRewriter

@copy-pr-bot
Copy link

copy-pr-bot bot commented Mar 12, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@yaoyaoding yaoyaoding force-pushed the dce branch 2 times, most recently from 979e70e to 7e8bff9 Compare March 12, 2026 01:08
Implement a DCE pass that removes functional instructions whose output
tensors are never consumed, and TensorItemValueStmt/TensorItemPtrStmt
whose bound Vars are never referenced. Uses a two-pass approach:
1. Collect used tensors via IRVisitor with fixed-point propagation
2. Eliminate dead instructions/stmts via IRRewriter

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Yaoyao Ding <dingyaoyao.cs@gmail.com>
@yaoyaoding yaoyaoding merged commit 3603a45 into main Mar 12, 2026
8 checks passed
@yaoyaoding yaoyaoding deleted the dce branch March 12, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant