HomePhabricator

[MLIR] Replace splitBlock() with createBlock in GenericAtomicRMWOp lowering.

Authored by pifon2a on Apr 25 2020, 8:35 AM.

Description

[MLIR] Replace splitBlock() with createBlock in GenericAtomicRMWOp lowering.

addArgument() is not undoable and should not be used in
ConversionPattern, therefore replacing splitBlock() with
createBlock(), that creates a block with specified args.

Differential Revision: https://reviews.llvm.org/D78731