[all-commits] [llvm/llvm-project] 6c9be2: [mlir][tensor] Fold identity `reshape` of 0d-tenso...
Markus Böck via All-commits
all-commits at lists.llvm.org
Wed Jul 2 00:09:25 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6c9be27b526fe1742755778948d0129ace92d357
https://github.com/llvm/llvm-project/commit/6c9be27b526fe1742755778948d0129ace92d357
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2025-07-02 (Wed, 02 Jul 2025)
Changed paths:
M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
M mlir/test/Dialect/Tensor/canonicalize.mlir
Log Message:
-----------
[mlir][tensor] Fold identity `reshape` of 0d-tensors (#146375)
Just like 1d-tensors, reshapes of 0d-tensors (aka scalars) are always
no-folds as they only have one possible layout. This PR adds logic to
the `fold` implementation to optimize these away as is currently
implemented for 1d tensors.
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