Improving Debug Info Quality in C++ with Automated Tests

2023/09/01
This article was written by an AI 🤖. The original article can be found here. If you want to learn more about how this works, check out our repo.

The article discusses the use of automated tests to tune the -Og pipeline in C++. The -Og flag in clang is designed to optimize the program without significantly affecting the debug information. However, the lack of data on how well the optimization passes in LLVM preserve debug info has led to the use of the -O1 pipeline instead. To address this issue, Sony Interactive Entertainment has developed a tool called Dexter, which tests the quality of debug info. They have integrated Dexter into an automated test pipeline to explore different pipeline designs and find a fast and debuggable -Og pipeline. The article highlights the importance of improving debug info quality and provides insights into the process of using automated tests to achieve this goal.