[all-commits] [llvm/llvm-project] 4113e1: [clang][PGO] Apply artificial DebugLoc to llvm.ins...
Michael Buch via All-commits
all-commits at lists.llvm.org
Thu May 2 15:18:38 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4113e15153d5af39a12c6bcf16e6b35614dc13a2
https://github.com/llvm/llvm-project/commit/4113e15153d5af39a12c6bcf16e6b35614dc13a2
Author: Michael Buch <michaelbuch12 at gmail.com>
Date: 2024-05-02 (Thu, 02 May 2024)
Changed paths:
M clang/lib/CodeGen/CodeGenFunction.h
A clang/test/Profile/debug-info-instr_profile_switch.cpp
Log Message:
-----------
[clang][PGO] Apply artificial DebugLoc to llvm.instrprof.increment instructions (#90717)
Prior to this change the debug-location for the
`llvm.instrprof.increment` intrinsic was set to whatever the current
DIBuilder's current debug location was set to. This meant that for
switch-statements, a counter's location was set to the previous case's
debug-location, causing confusing stepping behaviour in debuggers. This
patch makes sure we attach a dummy debug-location for the increment
instructions.
rdar://123050737
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list