Commit 916542e
authored
[TVMScript] Ensure completed root block has no read/write (#15249)
Prior to this PR, the root block of a parsed TIR TVMScript is possible
to have non-empty read/write regions, which conflicts with the design
of root blocks in TIR.
This PR updates the script completion pass and ensures that the root
block will no longer have read/write region.1 parent 7489ce2 commit 916542e
File tree
4 files changed
+17
-17
lines changed- src/tir/ir/script
- tests/python/unittest
4 files changed
+17
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | | - | |
45 | | - | |
| 42 | + | |
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
52 | 49 | | |
53 | | - | |
| 50 | + | |
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
| |||
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | | - | |
89 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| 101 | + | |
| 102 | + | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | | - | |
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
320 | 318 | | |
321 | 319 | | |
322 | 320 | | |
| |||
583 | 581 | | |
584 | 582 | | |
585 | 583 | | |
586 | | - | |
587 | | - | |
588 | 584 | | |
589 | 585 | | |
590 | 586 | | |
| |||
785 | 781 | | |
786 | 782 | | |
787 | 783 | | |
788 | | - | |
789 | | - | |
790 | 784 | | |
791 | 785 | | |
792 | 786 | | |
| |||
1009 | 1003 | | |
1010 | 1004 | | |
1011 | 1005 | | |
1012 | | - | |
1013 | | - | |
1014 | 1006 | | |
1015 | 1007 | | |
1016 | 1008 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| |||
0 commit comments