Skip to content

Commit

Permalink
restrict lifting of generic ops to batch_matmul
Browse files Browse the repository at this point in the history
  • Loading branch information
Max191 committed Dec 1, 2023
1 parent 40d58f0 commit b5867e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/src/iree/compiler/GlobalOptimization/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ void buildGlobalOptimizationPassPipeline(

// Enable data tiling after they are in a canonical form.
if (transformOptions.options.dataTiling) {
mainPassManager.addPass(createLiftGenericToTransposeBatchMatmulPass());
if (!clEnableQuantizedMatmulReassociation) {
mainPassManager.addPass(createLiftGenericToTransposeBatchMatmulPass());
}
// Expand all vectors in vecmat/matvec ops into matrices for tiling.
mainPassManager.addPass(createExpandVectorsPass());
mainPassManager.addPass(createSetEncodingPass());
Expand Down

0 comments on commit b5867e6

Please sign in to comment.