diff options
author | Alexander Belyaev <pifon@google.com> | 2022-12-07 18:30:36 +0100 |
---|---|---|
committer | Alexander Belyaev <pifon@google.com> | 2022-12-07 23:01:34 +0100 |
commit | f6fb0a4f35d152d154aeb8a8e3d47ff1392c1bad (patch) | |
tree | 71364cec657812d77ee3ff9a82d6f258ba112c14 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 7bb16b0207ca496b33349385a316515f204abcc0 (diff) | |
download | llvm-f6fb0a4f35d152d154aeb8a8e3d47ff1392c1bad.zip llvm-f6fb0a4f35d152d154aeb8a8e3d47ff1392c1bad.tar.gz llvm-f6fb0a4f35d152d154aeb8a8e3d47ff1392c1bad.tar.bz2 |
[mlir] Make patterns for folding tensor.empty optional.
At the moment, they are a part of EmptyOp::getCanonicalizationPatterns. When
extract_slice(tensor.empty) is rewritten as a new tensor.empty, it could
happen that we end up with two tensor.empty ops, since the original
tensor.empty can have two users. After bufferization such cases result in two
allocations.
Differential Revision: https://reviews.llvm.org/D139308
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions