summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/LowerVectorTransfers.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2018-12-27 08:16:39 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 14:39:34 -0700
commita63f44060151c2dd3c5da28f38e87d464a312959 (patch)
tree09d3baf401d02cca19d3a4972ef13904668560c0 /mlir/lib/Transforms/LowerVectorTransfers.cpp
parent057984d05d982dc1061a84dfd075498531642d2b (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud