Skip to content

Commit

Permalink
[CPU] Optimize vector transfers for pack/unpack before vector lowering (
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhanW authored Nov 13, 2023
1 parent dc506b8 commit 41a8152
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler/src/iree/compiler/Codegen/LLVMCPU/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,9 @@ void addCPUDataTilingPipeline(OpPassManager &passManager,
addBufferizePasses(nestedModulePM);

{
// Fold unit dims before vector lowering.
nestedModulePM.addNestedPass<func::FuncOp>(
createOptimizeVectorTransferPass(/*flatten=*/false));
LLVMCPUVectorLoweringPassOptions options;
options.splitVectorTransfersTo = "linalg-copy";
nestedModulePM.addNestedPass<func::FuncOp>(
Expand Down

0 comments on commit 41a8152

Please sign in to comment.