If there is only one single element in the vector, then we can
just extract the element as the result for the reduction.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Just a small question.
mlir/test/Dialect/Vector/canonicalize.mlir | ||
---|---|---|
1581 | Couldnt you just make this vector.extract -> addf ? |
mlir/test/Dialect/Vector/canonicalize.mlir | ||
---|---|---|
1581 | Sure. Implemented this case too. |
Couldnt you just make this vector.extract -> addf ?