On certain targets std.subview should be able to take memrefs from non-zero
addrspaces. Improve lowering logic to llvm dialect and amend the tests.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/test/Conversion/StandardToLLVM/convert-to-llvmir.mlir | ||
---|---|---|
972 | I don't see a strong reason to have a cross-product of tests here. The const/non-const-size part is common to both zero and non-zero address space, so it should be sufficient to only have one case where we check for non-zero space support. Otherwise, we risk having to do spurious test updates when an irrelevant part changes (e.g., if I removed the bitcast, I would now have to update twice as many tests that exercise exactly the same behavior) |
I don't see a strong reason to have a cross-product of tests here. The const/non-const-size part is common to both zero and non-zero address space, so it should be sufficient to only have one case where we check for non-zero space support. Otherwise, we risk having to do spurious test updates when an irrelevant part changes (e.g., if I removed the bitcast, I would now have to update twice as many tests that exercise exactly the same behavior)