Commit d1dea13
authored
[Bugfix][TVMScript] Preserve variable names in LetStmt (#14319)
When the TVMScript parser generates a `tir::LetStmt` to represent
assignment to a variable, the name of the variable should be used as
the name of the `tir::Var` in the `tir::LetStmt`.
This bug was introduced in #14207.1 parent 32e500b commit d1dea13
File tree
2 files changed
+14
-0
lines changed- python/tvm/script/parser/tir
- tests/python/unittest
2 files changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
402 | 415 | | |
403 | 416 | | |
0 commit comments