symbolOperands were completely ignored by SimplifyAllocConst. Also, I dindn't find any tests for this pattern. Also, slightly improved diagnostic message for verifyAllocLikeOp.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for fixing this. Some minor comments.
| mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp | ||
|---|---|---|
| 161 | This is incorrectly named - should be dynamicSizes. | |
| 171 | operand -> dynamicSize | |
| mlir/test/Dialect/MemRef/canonicalize.mlir | ||
| 226–230 | There are tests for this pattern but they are in test/Transforms/canonicalize.mlir - @alloc_const_fold. Can you bring that test case here and keep either that or this? | |
| 234 | Nit: ignore_symbols -> with_symbols ? | |
This is incorrectly named - should be dynamicSizes.