reactorlabs/rir

ScopeResolution: unnecessary execution of code

Ouverte

#1 274 ouverte le 1 avr. 2024

 (0 commentaire) (0 réaction) (0 personne assignée)C++ (19 forks)github user discovery
buggood first issuepir

Métriques du dépôt

Stars
 (61 étoiles)
Métriques de merge PR
 (Merge moyen 1m) (1 PR mergée en 30 j)

Description

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

Guide contributeur