reactorlabs/rir

ScopeResolution: unnecessary execution of code

开放

#1,274 创建于 2024年4月1日

 (0 条评论) (0 个反应) (0 位负责人)C++ (19 个派生)github user discovery
buggood first issuepir

仓库指标

星标
 (61 个星标)
PR 合并指标
 (平均合并 1分钟) (30 天内合并 1 个 PR)

描述

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

贡献者指南