Commit a34fc5c
committed
[mlir][tosa] Enable constant operand check by default
Previous behaviour was to only run the check for constant operands
when the "strict-op-spec-alignment" check was enabled. However, this
type of check seems more generally useful without this option enabled.
For example, tosa-to-linalg doesn't enable the "strict-op-spec-alignment"
option when running the tosa-validate pass, but it does expect operands
to be constant.
By enabling this type of checking by default, lowering that don't support
non constant operands and don't use the "strict-op-spec-alignment"
opetion will fail early, rather than later in the lowering pipeline.
Should a use-case need to disable this type of checking,
`--tosa-validate="extension=dynamic"` can be used.
Change-Id: Ia8893fd3d2293905183d62f8fa82c93fb00489691 parent 226fb1c commit a34fc5c
File tree
3 files changed
+3
-3
lines changed- mlir
- lib/Dialect/Tosa/Transforms
- test/Dialect/Tosa
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1383 | 1383 | | |
1384 | 1384 | | |
1385 | 1385 | | |
1386 | | - | |
| 1386 | + | |
1387 | 1387 | | |
1388 | 1388 | | |
1389 | 1389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments