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

Avoid trying to get disubprogram without debug MD #3488

Merged
merged 1 commit into from
Feb 23, 2021

Conversation

pow2clk
Copy link
Member

@pow2clk pow2clk commented Feb 22, 2021

When trying to fixup line numbers when inlining a function, if the call
instruction had no debug location, the DIsubprogram was queried. That
query took a very long time and was pointless when there is no debug
info.

The code now checks for debug metatdata before trying to get the
disubprogram

Fixes #3130

When trying to fixup line numbers when inlining a function, if the call
instruction had no debug location, the DIsubprogram was queried. That
query took a very long time and was pointless when there is no debug
info.

The code now checks for debug metatdata before trying to get the
disubprogram

Fixes microsoft#3130
@pow2clk pow2clk requested a review from adam-yang February 22, 2021 23:00
@pow2clk
Copy link
Member Author

pow2clk commented Feb 22, 2021

@adam-yang wrote this code, I don't think I'll feel comfortable submitting this unless he looks it over

Copy link
Contributor

@adam-yang adam-yang left a comment

Choose a reason for hiding this comment

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

LGTM

@AppVeyorBot
Copy link

@pow2clk pow2clk merged commit e2b32bc into microsoft:master Feb 23, 2021
@pow2clk pow2clk deleted the diprogram_slow branch February 23, 2021 00:41
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.

Slow compilation when inlining code without debug infos
3 participants