CastOp can be in conditionally reachable region, in which case this folding will be invalid.
Only conservatively fold ops in same block for now.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D130314
[mlir][linalg] Fix FoldTensorCastConsumerOp invalid folding ClosedPublic Authored by Hardcode84 on Jul 21 2022, 4:11 PM.
Details Summary CastOp can be in conditionally reachable region, in which case this folding will be invalid.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 21 2022, 8:52 PM Closed by commit rGf46744bd2a19: [mlir][linalg] Fix FoldTensorCastConsumerOp invalid folding (authored by Hardcode84). · Explain WhyJul 22 2022, 2:39 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 446756 mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir
|