This segfault could occur from out of bounds accesses when simplifying
tensor.extract with a constant index and a tensor created by
tensor.from_elements.
This IR is not necesarilly invalid as it might conditionally be
never executed.
Paths
| Differential D95535
[mlir] Prevent segfault in Tensor canonicalization ClosedPublic Authored by tpopp on Jan 27 2021, 8:30 AM.
Details Summary This segfault could occur from out of bounds accesses when simplifying This IR is not necesarilly invalid as it might conditionally be
Diff Detail
Unit TestsFailed
Event TimelineHerald added subscribers: teijeong, rdzhabarov, tatianashp and 14 others. · View Herald TranscriptJan 27 2021, 8:30 AM tpopp added inline comments. This revision is now accepted and ready to land.Jan 28 2021, 4:10 PM
This revision was landed with ongoing or failed builds.Jan 29 2021, 1:58 AM Closed by commit rG0c5e4a25ee23: [mlir] Prevent segfault in Tensor canonicalization (authored by Tres Popp <tpopp@google.com>). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 319817 mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/test/Dialect/Tensor/canonicalize.mlir
|
I don't understand this check, it reads backward to me right now?