diff options
| author | James Newling <james.newling@gmail.com> | 2025-10-15 08:40:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-15 08:40:30 -0700 |
| commit | bea77ed52e2d714a9f1a836673733dc5f44a29e3 (patch) | |
| tree | c7d82a368595f4be1a99001fa5e6f57bd815072c /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | cfe6becdefa082692dd22eab74860c6159851ccc (diff) | |
| download | llvm-bea77ed52e2d714a9f1a836673733dc5f44a29e3.zip llvm-bea77ed52e2d714a9f1a836673733dc5f44a29e3.tar.gz llvm-bea77ed52e2d714a9f1a836673733dc5f44a29e3.tar.bz2 | |
[mlir][Vector] Fold vector.step compared to constant (#161615)
This PR adds a canonicalizer to vector.step that folds vector.step iff
the result of the fold is a splat value. An alternative would be to
always constant fold it, but that might result in some very
large/cumbersome constants.
I do wonder if vector.step might be better represented as some sort of
attribute in the arith dialect, like %step = arith.constant iota<32> :
vector<32xindex>.
---------
Signed-off-by: James Newling <james.newling@gmail.com>
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
