[llvm-commits] [PATCH] Introduce -dbg-quality test

Török Edwin edwintorok at gmail.com
Wed Oct 21 10:08:21 PDT 2009


Hi Devang,

I've written the -dbg-quality pass (attached), and the
TEST.dbgquality.Makefile that tests the optimized (-std-compile-opts)
bitcode file. Should I also add a -std-link-opts tests? I think some
passes (such as -ipsccp) are only run there?
I've attached the results, the maximum score is 10000 (meaning all
non-alloca/non-dbgintrinsic instructions have debug info).
We have 79 tests at 10000 quality, the rest are between 5331 - 9999.

I've also found a bug: static constructors/destructors have out-of-file
line numbers often (PR5270). I've added a hack in -dbg-quality for now
that ignores those functions (denoted by a FIXME).

OK to commit, or should I wait till PR5270 is fixed so I can drop the
ugly hack?

Best regards,
--Edwin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sorted.txt
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091021/09fea276/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-diff
Size: 10122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091021/09fea276/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsuite.patch
Type: text/x-diff
Size: 2411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091021/09fea276/attachment-0001.patch>


More information about the llvm-commits mailing list