[Mlir-commits] [mlir] [mlir] Fix mem2reg crash on scalable vector store/load with matching type (PR #209426)
Tobias Gysi
llvmlistbot at llvm.org
Tue Jul 14 06:08:20 PDT 2026
================
@@ -291,6 +297,13 @@ static Value createInsertAndCast(OpBuilder &builder, Location loc,
srcValue.getType(),
/*narrowingConversion=*/false) &&
"expected that the compatibility was checked before");
+
+ // Nothing has to be done if the types are already the same. This also
+ // avoids querying the bit size of types that may not have one, such as
+ // scalable vectors.
----------------
gysit wrote:
```suggestion
// Nothing has to be done if the types are already the same. This also
// avoids querying the bit size of scalable vector types below.
```
nit: same
https://github.com/llvm/llvm-project/pull/209426
More information about the Mlir-commits
mailing list