OSDN Git Service

[MLIR] Set alignment in AllocOp of normalizeMemref()
authorHaruki Imai <imaihal@jp.ibm.com>
Wed, 22 Jul 2020 07:03:44 +0000 (12:33 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Wed, 22 Jul 2020 07:04:35 +0000 (12:34 +0530)
commit7f44a7130b9220cfd52e5c52eb1b7641c4ae7e95
treec077146599fad9fa64522822f840c2c605ba87ca
parent34b9bbb74d0bd77b1502bbef41bb9cf26c62e811
[MLIR] Set alignment in AllocOp of normalizeMemref()

AllocOp is updated in normalizeMemref(AllocOp allocOp), but, when the
AllocOp has `alignment` attribute, it was ignored and updated AllocOp
does not have `alignment` attribute. This patch fixes it.

Differential Revision: https://reviews.llvm.org/D83656
mlir/lib/Transforms/Utils/Utils.cpp
mlir/test/Transforms/memref-normalize.mlir