Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Shape/IR/Shape.cpp | ||
---|---|---|
295 | Why do we need to copy the body? Couldn't the body be taken over? And here the only different op would be the yield & new return type correct? |
mlir/lib/Dialect/Shape/IR/Shape.cpp | ||
---|---|---|
295 | Right :) |
mlir/lib/Dialect/Shape/IR/Shape.cpp | ||
---|---|---|
299–301 | optional super nit: moving this before the yieldOp creation would remove one setInsertionPoint call |
mlir/lib/Dialect/Shape/IR/Shape.cpp | ||
---|---|---|
299–301 | Had that first but you'd have to collect the return types somewhere earlier. (see newYieldOp->getOperandTypes()) |
Why do we need to copy the body? Couldn't the body be taken over?
And here the only different op would be the yield & new return type correct?