aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/ModuloSchedule.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2021-11-11 03:26:10 +0000
committerRiver Riddle <riddleriver@gmail.com>2021-11-11 03:26:29 +0000
commit6de6131f029d597188b05e666fb77fb69e5b936c (patch)
tree78545fefd92e261da670a80aba1925cd76ece876 /llvm/lib/CodeGen/ModuloSchedule.cpp
parent919ca9fc045f84b507bf80332c398a6fc3be1681 (diff)
downloadllvm-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