Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Dialect/SCF/Transforms/Utils.cpp | ||
|---|---|---|
| 84 | A utility to outline just a single Region will be useful by itself in other contexts. Can this be hoisted out to a common place (outside SCF dialect)? | |
| mlir/lib/Dialect/SCF/Transforms/Utils.cpp | ||
|---|---|---|
| 84 | Yes, but this will require handling multiple blocks which I will not have cycles to generalize before going on vacation. | |
| mlir/lib/Dialect/SCF/Transforms/Utils.cpp | ||
|---|---|---|
| 109 | This looks weird, can you just remap after construction or something? Cloning shouldn't be something considered this cheap. | |
| mlir/include/mlir/Dialect/SCF/Utils.h | ||
|---|---|---|
| 57 | Typo: "thepointer" | |
| mlir/lib/Dialect/SCF/Transforms/Utils.cpp | ||
| 90 | Should the function rather take an OpBuilder as argument? This will make it compatible with the pattern rewriting infra. | |
| 96 | What's the problem specifically? values.getTypes() should give you a TypeRange, and FunctionType::get accepts it. | |
| 106 | Could this be simplified to for (Operation &op : ifOrElseRegion.front().without_terminator()) and a separate handling of the terminator? | |
| 111 | If you lookup operands and put them in a vector, which is then passed into b.create, this will become compatible with pattern rewriting. | |
DCE.
| mlir/lib/Dialect/SCF/Transforms/Utils.cpp | ||
|---|---|---|
| 96 | Wouldn't convert automatically when this was originally written, works with rebase. | |
Typo: "thepointer"