Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOLT] Reset output addresses for deleted blocks #73429

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

maksfb
Copy link
Contributor

@maksfb maksfb commented Nov 26, 2023

This is a follow-up to #73076. We need to reset output addresses for deleted blocks, otherwise the address translation may mistakenly attribute input address of a deleted block to a non-zero address.

While working on a test case, I've discovered that DWARF output ranges were already broken for deleted basic blocks: #73428. I will provide a test case for this PR with a DWARF address range fix PR.

This is a follow-up to llvm#73076. We need to reset output addresses for
deleted blocks, otherwise the address translation may mistakenly
attribute input address of a deleted block to a non-zero address.

While working on a test case, I've discovered that DWARF output ranges
were already broken for deleted basic blocks: llvm#73428. I will provide
a test case for this PR with a DWARF address range fix PR.
Copy link
Contributor

@ShatianWang ShatianWang left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for working on this.

@maksfb maksfb merged commit f483425 into llvm:main Nov 26, 2023
4 checks passed
@maksfb maksfb deleted the gh-fix-deleted-output branch November 29, 2023 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants