# Sema: don't emit AIR \`reduce\` for single-element vectors · gitcafe/zig

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

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

Visibility: public

Requested revision: 7c31f9d4ff56146dc21818967aab7123e0cd5dfe

Requested commit: 7c31f9d4ff56146dc21818967aab7123e0cd5dfe

Commit: 7c31f9d4ff56146dc21818967aab7123e0cd5dfe

Tree: 640ea0dca179a6d3b73abf67d1d8e2c4c544937f

Author: mlugg

Committer: Jacob Young

## Message

```
Sema: don't emit AIR `reduce` for single-element vectors

This is equivalent to `array_elem_val`, and doing that conversion in
Sema (seems reasonable since it's just a simple branch) is much easier
for the self-hosted x86_64 backend then actually handling this case.

```

## Parents

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

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