From 83ad4a9f17f43b05852499c6e6995139d54bd128 Mon Sep 17 00:00:00 2001 From: Lofty Date: Sat, 2 Sep 2023 11:30:35 +0100 Subject: [PATCH] mistral: fix horrific wire hashing performance --- mistral/archdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mistral/archdefs.h b/mistral/archdefs.h index 97d95bc8..cd900624 100644 --- a/mistral/archdefs.h +++ b/mistral/archdefs.h @@ -106,7 +106,7 @@ struct WireId bool operator==(const WireId &other) const { return node == other.node; } bool operator!=(const WireId &other) const { return node != other.node; } bool operator<(const WireId &other) const { return node < other.node; } - unsigned int hash() const { return unsigned(node); } + unsigned int hash() const { return node.v; } }; struct PipId