[PATCH] D66467: [Codegen] skip debug instr to avoid code change

David Stenberg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 04:58:49 PDT 2019


dstenb added a comment.

It might be worthwhile to try to reduce the reproducer with Bugpoint.

Perhaps there exists some neat wrapper/template for bugpointing these types of bugs, but I personally just pass a custom script to Bugpoint of the following form:

  opt $1 -S | llc [...] -o with_debug.o
  opt $1 -S -strip-debug | llc [...] -o without_debug.o
  [exit 1 if text sections differ]
  exit 0

If you have not used Bugpoint with custom scripts before, then I think the following blog post can be helpful: http://blog.llvm.org/2015/11/reduce-your-testcases-with-bugpoint-and.html


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

https://reviews.llvm.org/D66467





More information about the llvm-commits mailing list