[Mlir-commits] [mlir] [mlir][vector] Update the internal representation of in_bounds (PR #100336)
Benjamin Maxwell
llvmlistbot at llvm.org
Tue Aug 13 09:57:09 PDT 2024
================
@@ -248,10 +248,9 @@ struct CastAwayTransferReadLeadingOneDim
AffineMap::get(oldMap.getNumDims(), oldMap.getNumSymbols(), newResults,
rewriter.getContext());
- ArrayAttr inBoundsAttr;
- if (read.getInBounds())
- inBoundsAttr = rewriter.getArrayAttr(
- read.getInBoundsAttr().getValue().take_back(newType.getRank()));
+ DenseBoolArrayAttr inBoundsAttr;
+ inBoundsAttr = rewriter.getDenseBoolArrayAttr(
+ read.getInBoundsAttr().asArrayRef().take_back(newType.getRank()));
----------------
MacDue wrote:
`read.getInBoundsAttr().asArrayRef()` -> `read.getInBounds()`?
https://github.com/llvm/llvm-project/pull/100336
More information about the Mlir-commits
mailing list