Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM but River mentioned there were some perf issues. Do have a quick capture of the before vs. after time to run a pattern-heavy workload?
I didn't benchmark but dumped the assembly and exchanged with River, he was fine with the current state. We'll pay the price of the capture only (here setting up two pointers on the stack).
mlir/lib/Rewrite/PatternApplicator.cpp | ||
---|---|---|
188–192 | Seeing this pattern multiple times almost makes me think executeAction should have a return value, but that's a weak thought. |
mlir/lib/Rewrite/PatternApplicator.cpp | ||
---|---|---|
188–192 | Do you have some C++ dark-magic ideas about this? It's not clear to me to see how to build some return value with unknown type ahead of time there (unless you mean we'd just say we'll forward a bool and that's it. |
mlir/lib/Rewrite/PatternApplicator.cpp | ||
---|---|---|
188–192 | Still interested in this if you have thoughts! |
Seeing this pattern multiple times almost makes me think executeAction should have a return value, but that's a weak thought.