Skip to content

Update break-false-deps to track updates to the machine function#202081

Draft
juanvazquez wants to merge 1 commit into
llvm:mainfrom
juanvazquez:break-false-deps
Draft

Update break-false-deps to track updates to the machine function#202081
juanvazquez wants to merge 1 commit into
llvm:mainfrom
juanvazquez:break-false-deps

Conversation

@juanvazquez
Copy link
Copy Markdown
Contributor

Follow-up on recommendation in #194262 to track when breakPartialRegDependency will insert instructions, and return PreservedAnalyses::all() otherwise.

  • Introduce a Changed field to track changes: when the pass inserts instructions or modifies registers.
  • Modify the pass, when running with the new pass manager, to preserve analysis unless changes to the machine fuunction are done.
  • The pass is kept as is when running with the legacy pass manager.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 6, 2026

✅ With the latest revision this PR passed the C/C++ code formatter.

Follow-up on recommendation in llvm#194262 to track when breakPartialRegDependency
will insert instructions, and return PreservedAnalyses::all() otherwise.

* Introduce a Changed field to track changes: when the pass inserts
  instructions or modifies registers.
* Modify the pass, when running with the new pass manager, to preserve
  analysis unless changes to the machine fuunction are done.
* The pass is kept as is when running with the legacy pass manager.
* Changes by breakPartialRegDependency() are tracked locally by diffing to do
  not modify the API.
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