Skip to content

Commit

Permalink
Turn off canonicalization for interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdweightman committed Sep 5, 2024
1 parent cfd3ff4 commit 71af6f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zirgen/dsl/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ int runTests(mlir::ModuleOp& module) {
pm.addPass(mlir::createInlinerPass());
mlir::OpPassManager& opm = pm.nest<zirgen::Zhlt::StepFuncOp>();
opm.addPass(zirgen::ZStruct::createUnrollPass());
opm.addPass(mlir::createCanonicalizerPass());
// Canonicalization at this point seems to be unprofitable when running in the
// interpreter
// opm.addPass(mlir::createCanonicalizerPass());
opm.addPass(mlir::createCSEPass());
if (failed(pm.run(module))) {
llvm::errs() << "an internal compiler error occurred while inlining the tests:\n";
Expand Down

0 comments on commit 71af6f8

Please sign in to comment.