This pattern inlines operands to a linalg.generic operation that use a constant index and hence are loop-invariant scalars. This reduces the number of linalg.generic operands and unlocks some canonicalizations that rely on seeing an explicit tensor.extract.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
looks good, thanks
mlir/lib/Dialect/Linalg/Transforms/InlineScalarOperands.cpp | ||
---|---|---|
11 | opernand |
opernand