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

Head commit for run:
6583b2b44a29b04871b7ff2575e8bfd84966e0a0 / Yifan Chen 
<[email protected]>
[Fix][Relax] Preserve identity permute_dims in AdjustMatmulOrder (#20287)

## Summary

`AdjustMatmulOrder` matched any `relax.permute_dims` around an inner
matmul as though it were a transpose. An explicit identity axis order,
such as `[0, 1]`, preserves the inner result and must not trigger that
transpose-specific reassociation.

This change checks explicit axes before the transpose rewrite and leaves
identity permutations unchanged. It preserves the existing behavior for
genuine transposes.

Fixes #20277.

## Validation

- `python -m pytest
tests/python/relax/test_transform_adjust_matmul_order.py -q` — 27 passed
with a local CPU/LLVM build.
- The new integer LLVM regression returns `[-14, 42]` after
`AdjustMatmulOrder`; the previous implementation returns `[-20, 40]`.
- `pre-commit run --files src/relax/transform/adjust_matmul_order.cc
tests/python/relax/test_transform_adjust_matmul_order.py`

Generated-by: OpenAI Codex (GPT-6)

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

With regards,
GitHub Actions via GitBox


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

Reply via email to