From 041dad92cf6254e0f3e00dbcb932158701abce13 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Wed, 3 Sep 2025 10:26:47 +0100 Subject: [PATCH] Internals: Remove use of DfgVetex::equals from V3DfgPeephole This is both unnecessary and slower than the existing `isSame`. --- src/V3DfgPeephole.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3DfgPeephole.cpp b/src/V3DfgPeephole.cpp index 4c3f0316c..52df0b114 100644 --- a/src/V3DfgPeephole.cpp +++ b/src/V3DfgPeephole.cpp @@ -1322,7 +1322,7 @@ class V3DfgPeephole final : public DfgVisitor { { const auto joinSels = [this](DfgSel* lSelp, DfgSel* rSelp, FileLine* flp) -> DfgSel* { - if (lSelp->fromp()->equals(*rSelp->fromp())) { + if (isSame(lSelp->fromp(), rSelp->fromp())) { if (lSelp->lsb() == rSelp->lsb() + rSelp->width()) { // Two consecutive Sels, make a single Sel. const uint32_t width = lSelp->width() + rSelp->width();