reactorlabs/rir

ScopeResolution: unnecessary execution of code

Open

#1.274 geöffnet am 1. Apr. 2024

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (19 Forks)github user discovery
buggood first issuepir

Repository-Metriken

Stars
 (61 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

The code here will run on every iteration of this pass. Even if it does not change the 'changed' flag , the method fromContext should not be invoked more than is required.

https://github.com/reactorlabs/rir/blob/0c2896fbc82f505e61ed8db416e113905d8f2237/rir/src/compiler/opt/scope_resolution.cpp#L317

Contributor Guide