aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp
diff options
context:
space:
mode:
authorLei Zhang <antiagainst@google.com>2022-02-16 10:28:51 -0500
committerLei Zhang <antiagainst@google.com>2022-02-16 11:19:35 -0500
commit0edb4127730a27f06b73326fecd89870b2eb80d6 (patch)
tree0a93e80dc5de95e2b32b5676925216e238ded745 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp
parent27cd2a6284b8c59f5dbd9086cf80db3b7b7047b1 (diff)
downloadllvm-0edb4127730a27f06b73326fecd89870b2eb80d6.zip
llvm-0edb4127730a27f06b73326fecd89870b2eb80d6.tar.gz
llvm-0edb4127730a27f06b73326fecd89870b2eb80d6.tar.bz2
[mlir][linalg] Add control to pad-slice swap pattern
The pad-slice swap pattern generates `scf.if` and `tensor.generate` to guard against zero-sized slices if it cannot prove the slice is always non-zero. This is safe but quite conservative. It can be unnecessary for cases where we know by problem definition such cases does not exist, even if with dynamic shaped ops or unknown tile/slice sizes, e.g., convolution padding size = 1 with kernel dim size = 3. So this commit introduces a control to the pattern to specify whether to generate the if constructs to handle such cases better, given that once the if constructs is materialized, it's very hard to analyze and simplify. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D117017
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.cpp')
0 files changed, 0 insertions, 0 deletions