[firtool] Enable CSE on RTL

The CSE pass has been fixed upstream to not crash on graph regions with
use-before-def's in the IR.
This commit is contained in:
Andrew Young 2021-03-31 19:33:33 -07:00
parent c1dfa59cc6
commit 94ff0a1764
1 changed files with 1 additions and 3 deletions

View File

@ -200,9 +200,7 @@ processBuffer(std::unique_ptr<llvm::MemoryBuffer> ownedBuffer,
if (!disableOptimization) {
auto &modulePM = pm.nest<rtl::RTLModuleOp>();
modulePM.addPass(sv::createRTLCleanupPass());
// FIXME: Disabled because CSE crashes on graph regions in some cases.
// Issue #813: https://github.com/llvm/circt/issues/813
// modulePM.addPass(createCSEPass());
modulePM.addPass(createCSEPass());
modulePM.addPass(createCanonicalizerPass());
}
}