reactorlabs/rir

ScopeResolution: unnecessary execution of code

オープン

#1,274 opened on 2024/04/01

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (19 件のフォーク)github user discovery
buggood first issuepir

Repository metrics

Stars
 (61 個のスター)
PR merge metrics
 (平均マージ 1m) (30d で 1 merged 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

コントリビューターガイド