Details
- Reviewers
frgossen
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp | ||
---|---|---|
456 | is currently unused | |
460–469 | Starting with if (isa<memref::..., I think this can still be the old logic. The loop above is all you need, I think. | |
mlir/test/Dialect/Bufferization/canonicalize.mlir | ||
258 | Can you add the // ----- between the test cases? | |
260 | Can you give the test function a meaningful name? | |
262 | This could be passed in as an arg to keep the test simpler. |
Add dealloc alias check to bufferization
Traverse the cloneOp for aliases to find the alloc op
mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp | ||
---|---|---|
457 | How about only updateing the above source value/op here and using the previous implementation with the maybeSourceDeallocOp? |
add dealloc alias check to bufferization
Traverse the cloneOp for aliases to find the alloc op
Add dealloc alias check to bufferization
Traverse the cloneOp for aliases to find the alloc op
Nice!
Now the test cases:
Failed Tests (3): MLIR :: Dialect/Bufferization/canonicalize.mlir MLIR :: Dialect/Bufferization/inlining.mlir MLIR :: Transforms/canonicalize.mlir
mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp | ||
---|---|---|
455 | LLVM naming convention wants it to be named sourceOp. nit: source.getDefiningOp() |
LLVM naming convention wants it to be named sourceOp.
nit: source.getDefiningOp()