diff options
| author | Schuyler Eldridge | 2020-01-09 13:02:36 -0500 |
|---|---|---|
| committer | mergify[bot] | 2020-01-09 18:02:36 +0000 |
| commit | 2dc005d500ffcccef5def5938dc7ead7c68644b3 (patch) | |
| tree | b64a952e0bd9bb5fe1a5e7c04e7e373f197f46b2 /src/test/scala/firrtlTests/PassTests.scala | |
| parent | a4f2eda0ca312f80f43f89a764622aa744f9f84b (diff) | |
Dedup PassTests, add NoCircuitDedupAnnotations (#1302)
Change PassTests to include Dedup when running transforms. This makes
PassTests behave more like an actual compiler.
Fixes bugs in Inline, Flatten, and Grouping tests where the tests
would only work without deduplication. This adds
NoCircuiDedupAnnotations to prevent deduplication for the offending
tests.
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
Diffstat (limited to 'src/test/scala/firrtlTests/PassTests.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/PassTests.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/scala/firrtlTests/PassTests.scala b/src/test/scala/firrtlTests/PassTests.scala index 6e12dd5b..8350753d 100644 --- a/src/test/scala/firrtlTests/PassTests.scala +++ b/src/test/scala/firrtlTests/PassTests.scala @@ -8,6 +8,7 @@ import org.scalatest.junit.JUnitRunner import firrtl.ir.Circuit import firrtl.Parser.UseInfo import firrtl.passes.{Pass, PassExceptions, RemoveEmpty} +import firrtl.transforms.DedupModules import firrtl._ import firrtl.annotations._ import logger._ @@ -73,6 +74,7 @@ trait LowTransformSpec extends SimpleTransformSpec { new ChirrtlToHighFirrtl(), new IRToWorkingIR(), new ResolveAndCheck(), + new DedupModules(), new HighFirrtlToMiddleFirrtl(), new MiddleFirrtlToLowFirrtl(), new CustomResolveAndCheck(LowForm), @@ -87,6 +89,7 @@ trait MiddleTransformSpec extends SimpleTransformSpec { new ChirrtlToHighFirrtl(), new IRToWorkingIR(), new ResolveAndCheck(), + new DedupModules(), new HighFirrtlToMiddleFirrtl(), new CustomResolveAndCheck(MidForm), transform @@ -100,6 +103,7 @@ trait HighTransformSpec extends SimpleTransformSpec { new ChirrtlToHighFirrtl(), new IRToWorkingIR(), new CustomResolveAndCheck(HighForm), + new DedupModules(), transform ) } |
