reactorlabs/rir

ScopeResolution: unnecessary execution of code

Aberta

#1.274 aberto em 1 de abr. de 2024

 (0 comentário) (0 reação) (0 responsável)C++ (19 forks)github user discovery
buggood first issuepir

Métricas do repositório

Stars
 (61 estrelas)
Métricas de merge de PR
 (Mesclagem média 1m) (1 fundiu PR em 30d)

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

Guia do colaborador