- Rename isLastUse to isDeadAfter to reflect what the function does.
- Avoid a second walk over all operations in BlockInfoBuilder constructor.
- use std::move() to save the new in set.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Analysis/Liveness.cpp | ||
---|---|---|
69 | Not sure how it changes the behavior: it looks like all defs in all nested operations are added to defValues and all uses in all nested operations (except the ones in defValues) and that's the behavior of the new code. Note that useValues is empty before this code. |
mlir/lib/Analysis/Liveness.cpp | ||
---|---|---|
69 | Right right, misread the comment there. |
You'll also need to update usages in comments.