Skip to content

LATX: remove redundant IR2 constants and address operations - #452

Closed
luzeng87 wants to merge 2 commits into
lat-opensource:masterfrom
luzeng87:ir2-redundant-xvldi
Closed

LATX: remove redundant IR2 constants and address operations#452
luzeng87 wants to merge 2 commits into
lat-opensource:masterfrom
luzeng87:ir2-redundant-xvldi

Conversation

@luzeng87

@luzeng87 luzeng87 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • track LASX immediate values across adjacent guest instructions and omit repeated XVLDI operations
  • invalidate tracked values on register writes, labels, branches, and indirect jumps
  • split low signed 12-bit RIP-relative displacements from JIT address materialization
  • use the low part directly as the host load/store displacement
  • preserve the existing relocation form during AOT pre-translation

Validation

  • clean 3A6000 build: passed
  • AVX conversion, packing, multiply, shuffle, extract, insert, and broadcast fixtures: passed
  • JIT, cold AOT, and hot AOT modes: passed with non-empty AOT files
  • DCO sign-offs present on all commits

This PR supersedes the separate RIP-relative displacement PR. It remains a draft while grouped checks run.

Signed-off-by: Lu Zeng <luzeng87@gmail.com>
@luzeng87
luzeng87 marked this pull request as draft September 3, 2026 03:07
Signed-off-by: Lu Zeng <luzeng87@gmail.com>
@luzeng87 luzeng87 changed the title LATX: eliminate redundant LASX immediate loads LATX: remove redundant IR2 constants and address operations Sep 3, 2026
@luzeng87

luzeng87 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by the consolidated #438 draft. The LASX immediate and RIP-relative address changes, with focused JIT/AOT coverage, are retained there.

@luzeng87 luzeng87 closed this Sep 3, 2026
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