================
----------------
banach-space wrote:
```suggestion
bool isOffsetDynamic = ShapedType::isDynamic(rcOffsets[0]);
if (isOffsetDynamic)
```
... and then re-use `isOffsetDynamic` below.
https://github.com/llvm/llvm-project/pull/203873