reactorlabs/rir

ScopeResolution: unnecessary execution of code

Aperta

#1274 aperta il 1 apr 2024

 (0 commenti) (0 reazioni) (0 assegnatari)C++ (19 fork)github user discovery
buggood first issuepir

Metriche repository

Star
 (61 stelle)
Metriche merge PR
 (Merge medio 1m) (1 PR mergiata in 30 g)

Descrizione

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

Guida contributor