[all-commits] [llvm/llvm-project] 624798: One-shot-bufferize: fix for inconsistent while arg...

Johannes Reifferscheid via All-commits all-commits at lists.llvm.org
Thu Sep 8 01:24:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6247988e0751422fa10d70e64939c987dd3b81d9
      https://github.com/llvm/llvm-project/commit/6247988e0751422fa10d70e64939c987dd3b81d9
  Author: Johannes Reifferscheid <jreiffers at google.com>
  Date:   2022-09-08 (Thu, 08 Sep 2022)

  Changed paths:
    M mlir/lib/Dialect/SCF/Transforms/BufferizableOpInterfaceImpl.cpp
    A mlir/test/Dialect/SCF/one-shot-bufferize-allow-return-allocs-no-deallocs.mlir
    M mlir/test/Dialect/SCF/one-shot-bufferize-tensor-copy-insertion.mlir
    M mlir/test/Dialect/SCF/one-shot-bufferize.mlir

  Log Message:
  -----------
  One-shot-bufferize: fix for inconsistent while arg types in before/after.

Currently, if the `before` and `after` regions of a while op have
tensor args in different indices, this leads to a crash.

This moves the pass-through check for args to the handling of the
condition block, since that is where the results are produced, so
it's also where copies must be made.

Reviewed By: springerm

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




More information about the All-commits mailing list