[all-commits] [llvm/llvm-project] 036772: [mlir][EDSC] Fix off-by-one BlockBuilder insertion...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Mon May 4 18:11:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 036772acfda8658eb737e72dcb4da4298db3bba7
      https://github.com/llvm/llvm-project/commit/036772acfda8658eb737e72dcb4da4298db3bba7
  Author: Nicolas Vasilache <ntv at google.com>
  Date:   2020-05-04 (Mon, 04 May 2020)

  Changed paths:
    M mlir/include/mlir/EDSC/Builders.h
    M mlir/test/EDSC/builder-api-test.cpp

  Log Message:
  -----------
  [mlir][EDSC] Fix off-by-one BlockBuilder insertion point.

Summary:
In the particular case of an insertion in a block without a terminator, the BlockBuilder insertion point should be block->end().

Adding a unit test to exercise this.

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




More information about the All-commits mailing list