# stage2: change how stale \`store_to_block_ptr\`s are detected · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/63788b2a511eb87974065a052e2436b0c6202544)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 63788b2a511eb87974065a052e2436b0c6202544

Requested commit: 63788b2a511eb87974065a052e2436b0c6202544

Commit: 63788b2a511eb87974065a052e2436b0c6202544

Tree: ef11ed08dc3b7328ba5de9c778a1afe9e0d48744

Author: Veikka Tuominen

Committer: Andrew Kelley

## Message

```
stage2: change how stale `store_to_block_ptr`s are detected

Instead of explicitly setting lhs to .none,
check if the lhs instruction was analyzed.
This simpler approach also handles stores from nested blocks correctly.

```

## Parents

- [52a2aa11e2768a5d7881377ddb7a053d81e4cff4](https://git.cafe/gitcafe/zig/commit/52a2aa11e2768a5d7881377ddb7a053d81e4cff4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/63788b2a511eb87974065a052e2436b0c6202544?format=markdown)
