diff options
| author | Chris Lattner <clattner@google.com> | 2018-12-30 23:10:35 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 14:49:52 -0700 |
| commit | 7974889f549a445890435950208ab3863722a3c5 (patch) | |
| tree | 3859ccb7d2a785c32208c4fd2ed9e2137af7dcf7 /mlir/lib/Transforms/LoopUnroll.cpp | |
| parent | 3c8fc797deaed5919aa13602e65d10395472c304 (diff) | |
| download | bcm5719-llvm-7974889f549a445890435950208ab3863722a3c5.tar.gz bcm5719-llvm-7974889f549a445890435950208ab3863722a3c5.zip | |
Update and generalize various passes to work on both CFG and ML functions,
simplifying them in minor ways. The only significant cleanup here
is the constant folding pass. All the other changes are simple and easy,
but this is still enough to shrink the compiler by 45LOC.
The one pass left to merge is the CSE pass, which will be move involved, so I'm
splitting it out to its own patch (which I'll tackle right after this).
This is step 28/n towards merging instructions and statements.
PiperOrigin-RevId: 227328115
Diffstat (limited to 'mlir/lib/Transforms/LoopUnroll.cpp')
| -rw-r--r-- | mlir/lib/Transforms/LoopUnroll.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/LoopUnroll.cpp b/mlir/lib/Transforms/LoopUnroll.cpp index 69431bf6349..a0472754ceb 100644 --- a/mlir/lib/Transforms/LoopUnroll.cpp +++ b/mlir/lib/Transforms/LoopUnroll.cpp @@ -70,7 +70,7 @@ struct LoopUnroll : public FunctionPass { : FunctionPass(&LoopUnroll::passID), unrollFactor(unrollFactor), unrollFull(unrollFull), getUnrollFactor(getUnrollFactor) {} - PassResult runOnMLFunction(Function *f) override; + PassResult runOnFunction(Function *f) override; /// Unroll this for inst. Returns false if nothing was done. bool runOnForInst(ForInst *forInst); @@ -83,7 +83,7 @@ struct LoopUnroll : public FunctionPass { char LoopUnroll::passID = 0; -PassResult LoopUnroll::runOnMLFunction(Function *f) { +PassResult LoopUnroll::runOnFunction(Function *f) { // Gathers all innermost loops through a post order pruned walk. class InnermostLoopGatherer : public InstWalker<InnermostLoopGatherer, bool> { public: |

