[all-commits] [llvm/llvm-project] 5ac9d6: [DenseElementsAttr] Teach isValidRawBuffer that 1-...
Chris Lattner via All-commits
all-commits at lists.llvm.org
Sat May 14 03:50:02 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5ac9d662093ddd880f9059f84b17296a882e7985
https://github.com/llvm/llvm-project/commit/5ac9d662093ddd880f9059f84b17296a882e7985
Author: Chris Lattner <clattner at nondot.org>
Date: 2022-05-14 (Sat, 14 May 2022)
Changed paths:
M mlir/lib/IR/BuiltinAttributes.cpp
M mlir/test/Dialect/Tosa/canonicalize.mlir
Log Message:
-----------
[DenseElementsAttr] Teach isValidRawBuffer that 1-elt values are splats.
We want getRaw() on tensors with i1 element type with a zero or 1 value
to be treated as a splat. This fixes:
https://github.com/llvm/llvm-project/issues/55440
More information about the All-commits
mailing list