mirror of https://github.com/llvm/circt.git
[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:
parent
c1dfa59cc6
commit
94ff0a1764
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue