Skip to content

Commit b461569

Browse files
committed
Merge remote-tracking branch 'origin/master' into optional-mask-size
2 parents f81e7da + e98fb4f commit b461569

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

src/est/include/est/EstimateParasitics.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <array>
77
#include <cstddef>
8+
#include <functional>
89
#include <map>
910
#include <memory>
1011
#include <optional>
@@ -44,7 +45,12 @@ using SteinerPt = int;
4445
class NetHash
4546
{
4647
public:
47-
size_t operator()(const sta::Net* net) const { return hashPtr(net); }
48+
// Pointer hashing is nondeterministic across runs. Switch to
49+
// Network::id(net) when a Network handle is available here.
50+
size_t operator()(const sta::Net* net) const
51+
{
52+
return std::hash<const sta::Net*>()(net);
53+
}
4854
};
4955

5056
enum class ParasiticsSrc

src/rsz/include/rsz/Resizer.hh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <array>
88
#include <cstddef>
99
#include <cstdint>
10+
#include <functional>
1011
#include <map>
1112
#include <memory>
1213
#include <optional>
@@ -85,7 +86,12 @@ class RegisterOdbCallbackGuard;
8586
class NetHash
8687
{
8788
public:
88-
size_t operator()(const sta::Net* net) const { return hashPtr(net); }
89+
// Pointer hashing is nondeterministic across runs. Switch to
90+
// Network::id(net) when a Network handle is available here.
91+
size_t operator()(const sta::Net* net) const
92+
{
93+
return std::hash<const sta::Net*>()(net);
94+
}
8995
};
9096

9197
using CellTargetLoadMap = std::map<sta::LibertyCell*, float>;

0 commit comments

Comments
 (0)