Skip to content

feat: [rocjitsu] Flag-Dependent Read/Write Liveness - #7384

Merged
theSK2005 merged 19 commits into
developfrom
users/skushwah/liveness-analysis-rw-flags
Jul 15, 2026
Merged

theSK2005 merged 19 commits into
developfrom
users/skushwah/liveness-analysis-rw-flags

Conversation

@theSK2005

@theSK2005 theSK2005 commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Adds the destination register for SDWA (dst_unused:preserved) and DPP (partial mask) instructions as a source so that InstDefUse and liveness analysis work soundly. Addresses issue #7033. PR #8344 is a followup.

Test Plan

Wrote some tests cases that decode SDWA and DPP instructions that do and don't keep prior register values and checked if uses were stored properly.

Test Result

Passed new tests and all previous tests.

Adds the destination register for SDWA and DPP instructions as a source so that InstDefUse and liveness analysis work soundly. Addresses issue #7033.
@theSK2005
theSK2005 marked this pull request as ready for review June 25, 2026 22:52
@theSK2005
theSK2005 requested review from a team and atgutier as code owners June 25, 2026 22:52
@therock-pr-bot

therock-pr-bot Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
🌿 Branch Name ✅ Pass —
📝 PR Title/Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ✅ Pass —
🔎 pre-commit ✅ Pass —
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —
🤖 therock-pr-bot ✅ Pass —

🎉 All checks passed! This PR is ready for review.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

@therock-pr-bot

therock-pr-bot Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@theSK2005 theSK2005 changed the title [rocjitsu] Flag-Dependent Read/Write Liveness [rocjitsu] Fix Flag-Dependent Read/Write Liveness Jun 26, 2026
@theSK2005 theSK2005 changed the title [rocjitsu] Fix Flag-Dependent Read/Write Liveness [rocjitsu] Flag-Dependent Read/Write Liveness Jun 26, 2026
@theSK2005 theSK2005 changed the title [rocjitsu] Flag-Dependent Read/Write Liveness feat: [rocjitsu] Flag-Dependent Read/Write Liveness Jun 26, 2026

@accauble accauble left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving but please confirm that you have looked for other examples of rw issues and did not find any. I would also like @Groverkss to sign off.

@accauble
accauble requested a review from Groverkss June 26, 2026 21:01
@therock-pr-bot

therock-pr-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

Pre-commit check failed

⛔ pre-commit failed

Please run locally:

  • python -m pip install pre-commit
  • pre-commit install
  • pre-commit run --all-files --show-diff-on-failure

This repo uses .pre-commit-config.yaml.

@theSK2005
theSK2005 requested a review from accauble July 1, 2026 21:48
@theSK2005
theSK2005 requested a review from kuhar July 7, 2026 20:26

@kuhar kuhar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments

…n't hardcoded, added test case that tests width = 2 instruction
@theSK2005
theSK2005 requested a review from kuhar July 10, 2026 16:40

@kuhar kuhar left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comments, otherwise LGTM

@theSK2005
theSK2005 requested a review from kuhar July 10, 2026 21:27
@theSK2005
theSK2005 merged commit 4fa6082 into develop Jul 15, 2026
27 checks passed
@theSK2005
theSK2005 deleted the users/skushwah/liveness-analysis-rw-flags branch July 15, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants