reactorlabs/rir

ScopeResolution: unnecessary execution of code

Open

#1,274 建立於 2024年4月1日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)C++ (19 fork)github user discovery
buggood first issuepir

倉庫指標

Star
 (61 star)
PR 合併指標
 (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

貢獻者指南