The GitHub Actions job "Lint" on tvm.git/main has succeeded.
Run started by GitHub user tlopex (triggered by tlopex).

Head commit for run:
40c2f54908e96875fa19e92db83f123854d97991 / T1Gang 
<[email protected]>
[TIR] Ignore None-valued pragma annotations (#20265)

Fixes #18393.

None-valued pragma annotations represent an unspecified pragma and
should not be lowered into `AttrStmt` nodes with undefined `PrimExpr`
values.

Previously, `pragma_unroll_explicit=None` was lowered into an `AttrStmt`
with an undefined value. During `FlattenBuffer`, `StmtExprMutator`
attempted to visit that value and triggered a segmentation fault.

This patch skips `None`-valued pragma annotations during opaque lowering
while preserving the existing behavior for valid pragma values.

For `pragma_unroll`, the existing upstream behavior is preserved:
non-null values remain attached to the loop, while null values are
ignored.

Tests:
- `tests/python/tirx-transform/test_tir_transform_flatten_buffer.py`: 11
passed
-
`tests/python/s_tir/transform/test_s_tir_transform_lower_opaque_block.py`:
13 passed
- `git diff --check upstream/main..HEAD`: passed

Report URL: https://github.com/apache/tvm/actions/runs/34308410873

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to