2 Commits

Author SHA1 Message Date
Michael Buch
18707f53d6
[clang][PGO][test] Relax FileCheck patterns in debug-info-instr_profile_switch.cpp (#90916)
Caused build-bot failures on various platforms.
2024-05-03 01:18:18 +01:00
Michael Buch
4113e15153
[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
2024-05-02 23:18:16 +01:00