[PATCH] D100371: [debug-info] SCCP should preserve the debug location for an one-to-one instruction replacement

Orlando Cazalet-Hyams via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 13 03:10:41 PDT 2021


Orlando added inline comments.


================
Comment at: llvm/test/Transforms/SCCP/sccp_preserve_debugloc.ll:10
+  %tmp = zext i8 undef to i32, !dbg !20
+  call void @llvm.dbg.value(metadata i32 %tmp, metadata !9, metadata !DIExpression()), !dbg !20
+  %tmp1 = getelementptr inbounds i64, i64* %arg, i32 0, !dbg !21
----------------
It doesn't look like you need the `llvm.dbg.value` intrinsics in this test. Did you use `opt --debugify` to generate the debug info? I think you can use `--debugify-level=locations` to prevent debugify generating these.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100371/new/

https://reviews.llvm.org/D100371



More information about the llvm-commits mailing list