aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorJames Newling <james.newling@gmail.com>2025-10-15 08:40:30 -0700
committerGitHub <noreply@github.com>2025-10-15 08:40:30 -0700
commitbea77ed52e2d714a9f1a836673733dc5f44a29e3 (patch)
treec7d82a368595f4be1a99001fa5e6f57bd815072c /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentcfe6becdefa082692dd22eab74860c6159851ccc (diff)
downloadllvm-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