Skip to content

Rewrite compileLoad and compileStore#367

Closed
DutChen18 wants to merge 3 commits into
masterfrom
rewrite-load-store
Closed

Rewrite compileLoad and compileStore#367
DutChen18 wants to merge 3 commits into
masterfrom
rewrite-load-store

Conversation

@DutChen18
Copy link
Copy Markdown
Member

  1. Fix call instructions returning complete object sometimes being rendered twice (replaces Fix call returning complete object rendered twice #362)
  2. Allows the pointer kind of %1 in %1 = load ptr, ptr %2 to be different from the pointer kind of the value stored at %2. This never happens in the current PA because it forbids collapsing pointer kinds on load instructions, but the PA rewrite will allow this.
  3. Add getPointerKindForLoadStore and getConstantOffsetForLoadStore. For load instructions, these are identical to getPointerKind and getConstantOffsetForPointer. For store instructions, these functions should operate on the value operand of the store instruction. Having a separate function for this simplifies the PA rewrite.

@DutChen18 DutChen18 requested a review from yuri91 April 30, 2026 14:16
@DutChen18 DutChen18 force-pushed the rewrite-load-store branch from d5f0aca to 986a1bf Compare April 30, 2026 14:17
@DutChen18
Copy link
Copy Markdown
Member Author

Rebased on master

Comment thread llvm/lib/CheerpUtils/PointerAnalyzer.cpp
@yuri91 yuri91 added the hydra Run hydra on this PR label May 1, 2026
@yuri91
Copy link
Copy Markdown
Member

yuri91 commented May 1, 2026

manually merged

@yuri91 yuri91 closed this May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hydra Run hydra on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants