addArgument() is not undoable and should not be used in ConversionPattern, therefore replacing splitBlock() with createBlock(), that creates a block with specified args.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
splitBlock is not undoable and should not be used in ConversionPattern.
splitBlock _is_ undoable, it's adding an argument to the block that is not
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp | ||
---|---|---|
2865 | IIRC, clone does this internally. |
IIRC, clone does this internally.