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.
Paths
| Differential D79363
[mlir][EDSC] Fix off-by-one BlockBuilder insertion point. ClosedPublic Authored by nicolasvasilache on May 4 2020, 1:37 PM.
Details 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.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.May 4 2020, 2:24 PM Closed by commit rG036772acfda8: [mlir][EDSC] Fix off-by-one BlockBuilder insertion point. (authored by nicolasvasilache). · Explain WhyMay 4 2020, 6:18 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 261982 mlir/include/mlir/EDSC/Builders.h
mlir/test/EDSC/builder-api-test.cpp
|