[all-commits] [llvm/llvm-project] bb1f22: [mlir][tosa] Fix negate lowering to skip no-op cas...
Vitalii Shutov via All-commits
all-commits at lists.llvm.org
Mon Jan 5 01:12:02 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bb1f220d534b0f6d80bea36662f5188ff11c2e54
https://github.com/llvm/llvm-project/commit/bb1f220d534b0f6d80bea36662f5188ff11c2e54
Author: Vitalii Shutov <vitalii.shutov at arm.com>
Date: 2026-01-05 (Mon, 05 Jan 2026)
Changed paths:
M mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
M mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
Log Message:
-----------
[mlir][tosa] Fix negate lowering to skip no-op casts (#173299)
Fix TOSA negate lowering to avoid emitting same-width
`ExtSIOp`/`TruncIOp`, which the arith verifier now rejects. Behavior is
unchanged. We only skip no-op casts when operand and intermediate widths
already match. Adds a regression test ensuring the lowering for integer
negates doesn't produce verifier-invalid casts.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list