TECH : Improving debug locations for variables in memory

Orlando Cazalet-Hyams

TAGS: LLVM Developers Meeting, Toolchain

Event: 2022 Euro LLVM Developers Meeting

LLVM generates suboptimal debug variable locations for variables in memory in optimised code. Due to a lack of information in the compiler, it uses a heuristic to decide whether to issue locations with low availability or locations that may be incorrect. We’ve been prototyping a new debug intrinsic which enables LLVM to make smarter decisions for these variables by connecting stores and source assignment markers. In this talk I will briefly outline the problem with the existing system, how the new system works, including how existing passes are affected and discuss the accuracy and coverage improvements we've found so far.

Duration: 9 Minutes

Back to top