Skip to content

Lower -profiling option to -debug-info-kind=line-tables-only #395

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

Merged
merged 2 commits into from
Feb 4, 2023

Conversation

haonanya
Copy link

'-profiling' option aims source code view under VTune. Turning it on means that debug information will be generated and all optimizations will be made. Most of OpenCL transformation passes (vectorizer, barrier, etc.) work with debug information too offhandedly. To minimize risks to get debug information broken, let's generate it as less as possible.

The patch also does other several things:

  1. Update minimum cmake version to 3.13.4 to align with LLVM's cmake requirement.
  2. Remove unused header and format code
  3. Fix some build warnings

'-profiling' option aims source code view under VTune.
Turning it on means that debug information will be generated and all
optimizations will be made. Most of OpenCL transformation passes
(vectorizer, barrier, etc.) work with debug information too offhandedly.
To minimize risks to get debug information broken, let's generate it as
less as possible.

The patch also does other several things:
1. Update minimum cmake version to 3.13.4 to align with LLVM's cmake
requirement.
2. Remove unused header and format code
3. Fix some build warnings
Copy link
Contributor

@wenju-he wenju-he left a comment

Choose a reason for hiding this comment

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

IIUC, this aligns with our downstream code, right? Not sure how it would impact GPU.

It's the follow up for preview patch to remove dwarf-column-info.
On windows the presence of column info in the debug info causes
undesirable stepping behavior in the Visual Studio debugger.
@haonanya
Copy link
Author

IIUC, this aligns with our downstream code, right? Not sure how it would impact GPU.

Correct.

@cdai2 cdai2 merged commit 4d0836b into intel:main Feb 4, 2023
@haonanya haonanya deleted the main-update branch February 28, 2023 05:40
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.

4 participants