-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[NFC] Leave a comment in Local.cpp
about debug info & sample profiling
#155296
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
[NFC] Leave a comment in Local.cpp
about debug info & sample profiling
#155296
Conversation
@llvm/pr-subscribers-llvm-transforms Author: Mircea Trofin (mtrofin) ChangesFull diff: https://github.com/llvm/llvm-project/pull/155296.diff 1 Files Affected:
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index ac344904f90f0..821a58caf10b2 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -3342,8 +3342,11 @@ void llvm::hoistAllInstructionsInto(BasicBlock *DomBlock, Instruction *InsertPt,
// retain their original debug locations (DILocations) and debug intrinsic
// instructions.
//
- // Doing so would degrade the debugging experience and adversely affect the
- // accuracy of profiling information.
+ // Doing so would degrade the debugging experience.
+ //
+ // FIXME: Issue #152767: debug info should also be the same as the
+ // original branch, **if** the user explicitly indicated that (for sampling
+ // PGO)
//
// Currently, when hoisting the instructions, we take the following actions:
// - Remove their debug intrinsic instructions.
|
Found this in a drive-by, worth stamping it with the issue so it's easy to find it later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've still got concerns about this direction/divergence between users and profilers & would love to see some attempt at unification - but a comment that points to the issue at least centralizes the discusison and leaves breadcrumbs towards it when it needs to be cleaned up in any direction later.
c255297
to
9038659
Compare
8422d7e
to
088311a
Compare
9038659
to
9b6d2e7
Compare
088311a
to
2e45cf2
Compare
2e45cf2
to
e8a9ad0
Compare
9b6d2e7
to
8489a8a
Compare
e8a9ad0
to
d8edb04
Compare
03284b6
to
6f1eaf0
Compare
2c17eab
to
e6959f2
Compare
29e3626
to
a9fa9c2
Compare
e6959f2
to
5f9b522
Compare
a9fa9c2
to
b46d516
Compare
5f9b522
to
38f0135
Compare
b46d516
to
eb37cca
Compare
38f0135
to
421deb7
Compare
eb37cca
to
f040170
Compare
421deb7
to
2362af9
Compare
…local.cpp_about_debug_info_sample_profiling
Issue #152767