Internals: Remove use of DfgVetex::equals from V3DfgPeephole

This is both unnecessary and slower than the existing `isSame`.
This commit is contained in:
Geza Lore 2025-09-03 10:26:47 +01:00
parent 4cda2c0a4e
commit 041dad92cf
1 changed files with 1 additions and 1 deletions

View File

@ -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();