Skip to content

Commit

Permalink
moving hoisting and canonicalizer pass into VectorToKernal.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun Thangamani committed Dec 5, 2024
1 parent 8aff31f commit 72dee68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/TPP/DefaultTppPasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ struct DefaultTppPasses
BrgemmLinalgTilingOptions{lhsTile, rhsTile}));
pm.addNestedPass<func::FuncOp>(createLoopInvariantCodeMotionPass());
pm.addNestedPass<func::FuncOp>(createVectorizationPass());
pm.addNestedPass<func::FuncOp>(createHoistVectorTransfers());
pm.addNestedPass<func::FuncOp>(createCanonicalizerPass());

if (vectorToXSMM) {
pm.addPass(createVectorToXSMM());
Expand Down
3 changes: 3 additions & 0 deletions lib/TPP/PassBundles/VectorToKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "mlir/Pass/Pass.h"
#include "mlir/Pass/PassManager.h"
#include "llvm/Support/Debug.h"
#include "mlir/Transforms/Passes.h"

#include "TPP/PassBundles.h"
#include "TPP/PassUtils.h"
Expand Down Expand Up @@ -48,6 +49,8 @@ struct VectorToKernel : public tpp::impl::VectorToKernelBase<VectorToKernel>,

private:
void constructPipeline() override {
pm.addNestedPass<func::FuncOp>(createHoistVectorTransfers());
pm.addNestedPass<func::FuncOp>(createCanonicalizerPass());
pm.addNestedPass<func::FuncOp>(createVectorContractToFMA());
}
};

0 comments on commit 72dee68

Please sign in to comment.