google / google/gapid

Dependency graph: ignore writes which do not change the state?

Open
#2,952 3 comments 0 reactions 0 assignees View on GitHub
enhancement needs discussion
Dominant language
Go
Stars
2.2k
Forks
329
PR merge metrics
No merged PRs in 30d

Description

Given:
```
bool state

cmd void A() {
state = true
}

cmd void B() {
state = true
}

cmd void C() {
_ = state
}
```
and a trace `A, B, C`, the dependencies of C will be B.

Yet the when building the dependency graph, we could detect that the write in B does not change the state, and thus "ignore" this write, which would lead to the dependencies of C being A.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.