[llvm] [RemoveDIs] Print non-intrinsic debug info in textual IR output (PR #79281)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 19 09:05:18 PST 2024


================
@@ -0,0 +1,80 @@
+;; Test that we can write in the new debug info format.
+; RUN: opt --passes=verify -S --write-experimental-debuginfo=false < %s \
+; RUN:   | FileCheck %s --check-prefixes=CHECK,OLDDBG --implicit-check-not=llvm.dbg
+; RUN: opt --passes=verify -S --write-experimental-debuginfo=true < %s \
+; RUN:   | FileCheck %s --check-prefixes=CHECK,NEWDBG --implicit-check-not=llvm.dbg
+
+;; Test also that the new flag is independent of the flag that enables use of
+;; these non-instruction debug info during LLVM passes.
----------------
jmorse wrote:

Great thing to test; however I think we're likely to abandon `--try-experimental-debuginfo-iterators` sometime soon as it was only there to make RemoveDIs tests get coverage on our llvm-new-debug-iterators buildbot. Now that RemoveDIs is on-by-default, it Should (TM) have no effect nowadays.

Is it alright to test these with `--experimental-debuginfo-iterators=false` and `--experimental-debuginfo-iterators=true` to cover all possibilities?

https://github.com/llvm/llvm-project/pull/79281


More information about the llvm-commits mailing list