diff options
| author | Andrzej WarzyĆski <andrzej.warzynski@arm.com> | 2024-07-24 14:40:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-24 14:40:19 +0100 |
| commit | 1f5807eb359fb172575e18bb063fd85e4dc836e9 (patch) | |
| tree | b5b73a22af23d2ad5f0b0ec5a515d3930311071c /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface | |
| parent | de8c4bef3329ce0045b8167cdb96d53b2a1509df (diff) | |
[mlir][vector][nfc] Simplify `in_bounds` attr update (#100334)
Since the `in_bounds` attribute is mandatory, there's no need for logic
like this (`readOp.getInBounds()` is guaranteed to return a non-empty
ArrayRef):
```cpp
ArrayAttr inBoundsAttr = readOp.getInBounds()
? rewriter.getArrayAttr( readOp.getInBoundsAttr().getValue().drop_back(dimsToDrop))
: ArrayAttr();
```
Instead, we can do this:
```cpp
ArrayAttr inBoundsAttr = rewriter.getArrayAttr(
readOp.getInBoundsAttr().getValue().drop_back(dimsToDrop));
```
This is a small follow-up for #97049 - this change should've been
included there.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface')
0 files changed, 0 insertions, 0 deletions
