Repository navigation
Merge main -> google - #3748
Merged
Merged
Merge main -> google#3748
Conversation
hanhanW
commented
Nov 6, 2020
Contributor
- d3e695a Avoid reading command-line flags in various VM related passes (Avoid reading command-line flags in various VM related passes #3740)
- bd10e22 Ignore to vectorize constants only generic op in LoadStoreVectorization (Ignore to vectorize constants only generic op in LoadStoreVectorization #3734)
- ea72096 Fix command-line option in test (Fix command-line option in test #3739)
- 46320f5 Clarify behavior of iree-translate (Clarify behavior of iree-translate #3738)
- 5656bec9 [spirv] Consolidate command-line option usage ([spirv] Consolidate command-line option usage #3674)
- 559e7b4 Add a pass to tile and vectorize workgroup tiles. (Add a pass to tile and vectorize workgroup tiles. #3710)
- 02363ba Add LinalgOp vectorization in TileAndFuse for SPIR-V (Add LinalgOp vectorization in TileAndFuse pass for SPIR-V #3732)
- b4d96eb Merge google -> main (Merge google -> main #3735)
* 1cd3a18 Merge pull request iree-org#3733 from hanhanW:main-to-google * 4809567 Synchronize submodules * 28f10b1 Synchronize submodules with LLVM at llvm/llvm-project@2f84b59a4cf9 * db2a762 Synchronize submodules * cd8ce40 Integrate LLVM at llvm/llvm-project@2f84b59a4cf9 * 40991d4 Synchronize submodules * 34db1a3 Integrate LLVM at llvm/llvm-project@b715fa330dfa * 6f307b4 Synchronize submodules * 90bc6ab Integrate LLVM at llvm/llvm-project@5b29d26b21bb * 5b5f8d6 fix type of makeInitializedUnrankedDescriptor
This allow to generate efficient code when FillOp is tiled with an op getting vectorized like MatMulOp.
- Tile and distribute linalg.batch_matmul - Tile and vectorize linalg.matmul & linalg.batch_matmul - Remove MatMulVectorization - Add llvm flag driven kernel dispatch with default parameters getting lowest latency on mobile_bert benchmarks: ``` ------------------------------------------------------------------------------------ Benchmark Time CPU Iterations ------------------------------------------------------------------------------------ BM_serving_default/process_time/real_time 923 ms 918 ms ```
MLIR allows one to declare pass (pipeline) options directly on the pass (pipeline) class. While convenient, it can be problematic when we need to organize the pass into a pipeline into some other bigger pipeline. It ends up that we need to duplicate the same command-line option three times: in the pass itself for testing with the pass directly, in the pass pipeline in order to test via the pass pipeline, and finally in the pass pipeline caller again for constructing the pass pipeline. This commit consolidates the above into one place where we define a single copy of the command-line option and use helper functions to read it wherever it's needed. Fixes iree-org#3640
There are a couple of investigation TODOs in here that stem from iree-translate differing from mlir-translate. They are not feasible without reworking the tool. Instead I added additional documenation on the differences for future readers and deleted the TODOs. We could still reconsider the expanded role of iree-translate and reduce it to a tool more akin to mlir-translate, creating a separate iree-compiler tool to run full compilation passes without taking translations to perform as command line flags. But that's larger in scope than these TODOs. Closes https://github.com/google/iree/issues//2958
…rg#3740) This commit moves command-line option interaction into pass registration and makes passes themselves cleaner.
Merged
hanhanW
added a commit
that referenced
this pull request
Nov 6, 2020
* 6c7480f Merge pull request #3748 from hanhanW:main-to-google * 33feef8 Synchronize submodules * 3a5aa4b Integrate LLVM at llvm/llvm-project@0e76a9bc5834 * fffd51b Synchronize submodules * cb35da0 Synchronize submodules with LLVM at llvm/llvm-project@4d79ef814aed * b2dccf8 Synchronize submodules * 51a71d5 Integrate LLVM at llvm/llvm-project@4d79ef814aed * 9981b21 Synchronize submodules * 2e314d6 Integrate LLVM at llvm/llvm-project@624d3fe0e41e * a31df46 Synchronize submodules * 684380b Integrate LLVM at llvm/llvm-project@930cf1cb9fdb * 7065592 Synchronize submodules * 29f8406 Integrate LLVM at llvm/llvm-project@bb43a0cd4adc * f7f5631 Synchronize submodules * 50d0209 Integrate LLVM at llvm/llvm-project@2eadbc86142b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.