diff options
| author | River Riddle <riverriddle@google.com> | 2019-02-04 10:30:45 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 16:10:24 -0700 |
| commit | a3d9ccaecbea042b59073ec34c91a343c1903a5c (patch) | |
| tree | 1342654690b36c32eb483cc9789e7af67be6c560 /mlir/lib/Transforms/MemRefDataFlowOpt.cpp | |
| parent | 9ca0691b06a421acf2dedd6dd72392e1dcfa1638 (diff) | |
| download | bcm5719-llvm-a3d9ccaecbea042b59073ec34c91a343c1903a5c.tar.gz bcm5719-llvm-a3d9ccaecbea042b59073ec34c91a343c1903a5c.zip | |
Replace the walkOps/visitOperationInst variants from the InstWalkers with the Instruction variants.
PiperOrigin-RevId: 232322030
Diffstat (limited to 'mlir/lib/Transforms/MemRefDataFlowOpt.cpp')
| -rw-r--r-- | mlir/lib/Transforms/MemRefDataFlowOpt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/MemRefDataFlowOpt.cpp b/mlir/lib/Transforms/MemRefDataFlowOpt.cpp index e6ce273b532..b9386c384dd 100644 --- a/mlir/lib/Transforms/MemRefDataFlowOpt.cpp +++ b/mlir/lib/Transforms/MemRefDataFlowOpt.cpp @@ -75,7 +75,7 @@ struct MemRefDataFlowOpt : public FunctionPass, InstWalker<MemRefDataFlowOpt> { PassResult runOnFunction(Function *f) override; - void visitOperationInst(OperationInst *opInst); + void visitInstruction(OperationInst *opInst); // A list of memref's that are potentially dead / could be eliminated. SmallPtrSet<Value *, 4> memrefsToErase; @@ -100,7 +100,7 @@ FunctionPass *mlir::createMemRefDataFlowOptPass() { // This is a straightforward implementation not optimized for speed. Optimize // this in the future if needed. -void MemRefDataFlowOpt::visitOperationInst(OperationInst *opInst) { +void MemRefDataFlowOpt::visitInstruction(OperationInst *opInst) { OperationInst *lastWriteStoreOp = nullptr; auto loadOp = opInst->dyn_cast<LoadOp>(); |

