diff options
author | Jakub Kuderski <kubak@google.com> | 2022-11-30 17:11:35 -0500 |
---|---|---|
committer | Jakub Kuderski <kubak@google.com> | 2022-11-30 17:13:04 -0500 |
commit | f22a573b2b8afaee88001168eeeb70c77f28a03e (patch) | |
tree | 5d95508e0f0b7a4ae58482832691ec186271aef3 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | b6a73d06bad46cf11a15a873f4fca732570af458 (diff) | |
download | llvm-f22a573b2b8afaee88001168eeeb70c77f28a03e.zip llvm-f22a573b2b8afaee88001168eeeb70c77f28a03e.tar.gz llvm-f22a573b2b8afaee88001168eeeb70c77f28a03e.tar.bz2 |
[mlir][vector] Clean up use of `llvm::zip` in `VectorOps.cpp`
- Use `zip_equal` where iteratees are supposted to have equal lenght.
- Use `zip_first` where the first iteratee is supposed to be the
shortest.
- Use `llvm::enumerate` instead of calculating index manually.
- Use structured bindings to unpack tuples where appropriate.
- Fix a bug in a comparison in `intersectsWhereNonNegative`.
Both `zip_first` (after D138858) and `zip_equal` (introduced in D138865)
assert interatee lengths, which allows us to more precisely convey
whether we want to iterate over the common prefix (`zip`), or expect all
lengths to be the same (`zip_equal`).
Reviewed By: dcaballe, antiagainst
Differential Revision: https://reviews.llvm.org/D139022
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions