diff options
| author | azidar | 2016-09-30 11:46:01 -0700 |
|---|---|---|
| committer | Jack Koenig | 2016-11-04 13:29:09 -0700 |
| commit | 1c36656fad15f515543d89a6407b360b4b2ebb87 (patch) | |
| tree | e115e2e565f4af78aa310dae169e2df2e20a9894 /src/main/scala/firrtl/Compiler.scala | |
| parent | 8fa9429a6e916ab2a789f5d81fa803b022805b52 (diff) | |
Add a pass to deduplicate modules
Diffstat (limited to 'src/main/scala/firrtl/Compiler.scala')
| -rw-r--r-- | src/main/scala/firrtl/Compiler.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/scala/firrtl/Compiler.scala b/src/main/scala/firrtl/Compiler.scala index 9781972e..949807db 100644 --- a/src/main/scala/firrtl/Compiler.scala +++ b/src/main/scala/firrtl/Compiler.scala @@ -176,8 +176,9 @@ object CompilerUtils { } else { inputForm match { case ChirrtlForm => Seq(new ChirrtlToHighFirrtl) ++ getLoweringTransforms(HighForm, outputForm) - case HighForm => Seq(new IRToWorkingIR, new ResolveAndCheck, new HighFirrtlToMiddleFirrtl) ++ - getLoweringTransforms(MidForm, outputForm) + case HighForm => + Seq(new IRToWorkingIR, new ResolveAndCheck, new transforms.DedupModules, + new HighFirrtlToMiddleFirrtl) ++ getLoweringTransforms(MidForm, outputForm) case MidForm => Seq(new MiddleFirrtlToLowFirrtl) ++ getLoweringTransforms(LowForm, outputForm) case LowForm => error("Internal Error! This shouldn't be possible") // should be caught by if above } |
