Skip to content

Avoid trying to get disubprogram without debug MD - #3488

Merged
Gregory Roth (pow2clk) merged 1 commit into
microsoft:masterfrom
pow2clk:diprogram_slow
Feb 23, 2021
Merged

Gregory Roth (pow2clk) merged 1 commit into
microsoft:masterfrom
pow2clk:diprogram_slow

Conversation

@pow2clk

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Collaborator Author

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

@adam-yang Adam Yang (adam-yang) 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.

LGTM

@AppVeyorBot

Copy link
Copy Markdown

@pow2clk
Gregory Roth (pow2clk) merged commit e2b32bc into microsoft:master Feb 23, 2021
@pow2clk
Gregory Roth (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