aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/options/Phase.scala
diff options
context:
space:
mode:
authorAlbert Chen2020-06-12 14:03:22 -0700
committerGitHub2020-06-12 21:03:22 +0000
commitb750754c10289909925d0c031bb5946bb54a33c7 (patch)
tree508181a0e5034bbd9960493560934108c9aa63e7 /src/main/scala/firrtl/options/Phase.scala
parent932c7c30ee0105574354a731ce60975c056d658b (diff)
delete usages of toSet for determinism (#1686)
* delete usages of toSet for determinism * add formatting suggestion from code review
Diffstat (limited to 'src/main/scala/firrtl/options/Phase.scala')
-rw-r--r--src/main/scala/firrtl/options/Phase.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/options/Phase.scala b/src/main/scala/firrtl/options/Phase.scala
index 6dd5d969..2d08318e 100644
--- a/src/main/scala/firrtl/options/Phase.scala
+++ b/src/main/scala/firrtl/options/Phase.scala
@@ -125,14 +125,14 @@ trait DependencyAPI[A <: DependencyAPI[A]] { this: TransformLike[_] =>
* $seqNote
*/
def prerequisites: Seq[Dependency[A]] = Seq.empty
- private[options] lazy val _prerequisites: LinkedHashSet[Dependency[A]] = new LinkedHashSet() ++ prerequisites.toSet
+ private[options] lazy val _prerequisites: LinkedHashSet[Dependency[A]] = new LinkedHashSet() ++ prerequisites
/** All transforms that, if a prerequisite of *another* transform, will run before this transform.
* $seqNote
*/
def optionalPrerequisites: Seq[Dependency[A]] = Seq.empty
private[options] lazy val _optionalPrerequisites: LinkedHashSet[Dependency[A]] =
- new LinkedHashSet() ++ optionalPrerequisites.toSet
+ new LinkedHashSet() ++ optionalPrerequisites
/** All transforms that must run ''after'' this transform
*
@@ -171,7 +171,7 @@ trait DependencyAPI[A <: DependencyAPI[A]] { this: TransformLike[_] =>
*/
def optionalPrerequisiteOf: Seq[Dependency[A]] = dependents
private[options] lazy val _optionalPrerequisiteOf: LinkedHashSet[Dependency[A]] =
- new LinkedHashSet() ++ optionalPrerequisiteOf.toSet
+ new LinkedHashSet() ++ optionalPrerequisiteOf
/** A function that, given *another* transform (parameter `a`) will return true if this transform invalidates/undos the
* effects of the *other* transform (parameter `a`).