diff options
author | River Riddle <riddleriver@gmail.com> | 2021-11-11 03:26:10 +0000 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2021-11-11 03:26:29 +0000 |
commit | 6de6131f029d597188b05e666fb77fb69e5b936c (patch) | |
tree | 78545fefd92e261da670a80aba1925cd76ece876 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | 919ca9fc045f84b507bf80332c398a6fc3be1681 (diff) | |
download | llvm-6de6131f029d597188b05e666fb77fb69e5b936c.zip llvm-6de6131f029d597188b05e666fb77fb69e5b936c.tar.gz llvm-6de6131f029d597188b05e666fb77fb69e5b936c.tar.bz2 |
[mlir] Optimize usage of llvm::mapped_iterator
mapped_iterator is a useful abstraction for applying a
map function over an existing iterator, but our current
usage ends up allocating storage/making indirect calls
even with the map function is a known function, which
is horribly inefficient. This commit refactors the usage
of mapped_iterator to avoid this, and allows for directly
referencing the map function when dereferencing.
Fixes PR52319
Differential Revision: https://reviews.llvm.org/D113511
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions