diff options
| author | Alex Zinenko <zinenko@google.com> | 2018-12-27 08:16:39 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 14:39:34 -0700 |
| commit | a63f44060151c2dd3c5da28f38e87d464a312959 (patch) | |
| tree | 09d3baf401d02cca19d3a4972ef13904668560c0 /mlir/lib/Transforms/LowerVectorTransfers.cpp | |
| parent | 057984d05d982dc1061a84dfd075498531642d2b (diff) | |
| download | bcm5719-llvm-a63f44060151c2dd3c5da28f38e87d464a312959.tar.gz bcm5719-llvm-a63f44060151c2dd3c5da28f38e87d464a312959.zip | |
LoopAnalysis: isContiguousAccess fail gracefully
Existing implementation of isContiguousAccess asserts that one of the
function arguments is within certain range, depending on another parameter.
However, the value of this argument may come from outside, in particular in the
loop vectorization pass it may come from command line arguments. This leads
to 'mlir-opt' crashing on an assertion depending on flags. Handle the error
gracefully by reporting error returning a negative result instead. This
negative result prevents any further transformation by the vectorizer so the IR
remains valid.
PiperOrigin-RevId: 227029496
Diffstat (limited to 'mlir/lib/Transforms/LowerVectorTransfers.cpp')
0 files changed, 0 insertions, 0 deletions

