aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2024-02-08 16:40:48 +0000
committerJeremy Morse <jeremy.morse@sony.com>2024-02-08 17:05:09 +0000
commitbdde5f9bea75e897bcc31a95b9c3376988c211cc (patch)
tree6692393ac6780fb3d19cedae3dd9ebb704cf5535
parent750981f1a2c6069cded709b75cc87d7abd05277a (diff)
downloadllvm-bdde5f9bea75e897bcc31a95b9c3376988c211cc.zip
llvm-bdde5f9bea75e897bcc31a95b9c3376988c211cc.tar.gz
llvm-bdde5f9bea75e897bcc31a95b9c3376988c211cc.tar.bz2
[DebugInfo][RemoveDIs] Turn on non-instrinsic debug-info by default
This patch causes all variable-location debug-info to be converted into non-intrinsic records as they passes through the optimisation / instrumentation passes. There's a brief introduction here [0] and a more detailed thread on what this means on discourse at [1]. If this commit is breaking your downstream tests, please see comment 12 in [1], which documents the kind of variation in tests we'd expect to see from this change and what to do about it. [0] https://llvm.org/docs/RemoveDIsDebugInfo.html [1] https://discourse.llvm.org/t/rfc-instruction-api-changes-needed-to-eliminate-debug-intrinsics-from-ir/68939
-rw-r--r--llvm/lib/IR/BasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp
index fe9d0d0..bf02eba 100644
--- a/llvm/lib/IR/BasicBlock.cpp
+++ b/llvm/lib/IR/BasicBlock.cpp
@@ -34,7 +34,7 @@ cl::opt<bool>
UseNewDbgInfoFormat("experimental-debuginfo-iterators",
cl::desc("Enable communicating debuginfo positions "
"through iterators, eliminating intrinsics"),
- cl::init(false));
+ cl::init(true));
DPMarker *BasicBlock::createMarker(Instruction *I) {
assert(IsNewDbgInfoFormat &&