# Sema: storePtr optimization for tuples · gitcafe/zig

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

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

Visibility: public

Requested revision: 1417698c111e7f75d1c6959c7af8cd1a4d5231f6

Requested commit: 1417698c111e7f75d1c6959c7af8cd1a4d5231f6

Commit: 1417698c111e7f75d1c6959c7af8cd1a4d5231f6

Tree: f66c94d9c97d231dc5a32fb815f57f420912ad7a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: storePtr optimization for tuples

To generate better code for tuples, we detect a tuple operand in
storePtr, and analyze field loads and stores directly. This avoids
an extra allocation + memcpy which would occur if we used `coerce`.

```

## Parents

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

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