Skip to content

LATX, AVX: avoid redundant vector copies and lane inserts - #451

Closed
luzeng87 wants to merge 1 commit into
lat-opensource:masterfrom
luzeng87:avx-vector-copy-elision
Closed

LATX, AVX: avoid redundant vector copies and lane inserts#451
luzeng87 wants to merge 1 commit into
lat-opensource:masterfrom
luzeng87:avx-vector-copy-elision

Conversation

@luzeng87

@luzeng87 luzeng87 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • write VEXTRACTF128 register results directly to the destination
  • handle VINSERTI128 source/destination overlap without an unconditional temporary and final copy
  • remove redundant upper-lane inserts after full-width VPBROADCASTB/W/D operations

Validation

  • clean 3A6000 build: passed
  • explicit VEXTRACTI128/VINSERTI128 overlap cases: passed
  • 256-bit byte, word, and doubleword broadcasts: passed
  • JIT, cold AOT, and hot AOT: passed with a non-empty AOT file and empty stderr
  • git diff --check: passed

Signed-off-by: Lu Zeng <luzeng87@gmail.com>
@luzeng87
luzeng87 marked this pull request as draft September 3, 2026 03:07
@luzeng87

luzeng87 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by grouped AVX lowering PR #448. The original commit remains separate inside that PR for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant