<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Aug 19, 2016, at 10:24 AM, Hongbin Zheng via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">I am trying to use bugpoint to reduce testcase. And bugpoint try to reduce the number of operands for metadata, and this generate corrupted metadata:</div><div class=""><br class=""></div><div class=""><div class="">*** Attempting to remove named metadata: Checking for crash with only these named metadata nodes: <a href="http://llvm.dbg.cu/" class="">llvm.dbg.cu</a> llvm.module.flags llvm.ident: <crash></div><div class="">Checking for crash with only these named metadata nodes: llvm.module.flags llvm.ident: <crash></div><div class="">Checking for crash with only these named metadata nodes: llvm.ident:</div><div class="">Checking for crash with only these named metadata nodes: llvm.module.flags: <crash></div><div class="">Checking for crash with only 3 named metadata operands: <crash></div><div class="">Checking for crash with only 2 named metadata operands: All DICompileUnits must be listed in <a href="http://llvm.dbg.cu/" class="">llvm.dbg.cu</a></div><div class="">LLVM ERROR: Broken module found, compilation aborted!</div></div></div></div></blockquote><div><br class=""></div><div><div class="">I had the same issue, and have some local patches to help with this.</div><div class="">Have you tried the -disable-namedmd-remove option?</div><div class=""><br class=""></div><div class="">Also, at this point where bug point crashes, it should already have dumped a module.</div><div class=""><br class=""></div><div class="">— </div><div class="">Mehdi</div><div class=""><br class=""></div></div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class="">This crash bugpoint itself. Is there away to prevent bugpoint from doing this rather than changing the source code of bugpoint?</div><div class=""><br class=""></div><div class="">I tried to run a "bugpoint --help-hidden" and get the following options related to metadata:</div><div class=""><div class=""> -lowertypetests - Lower type metadata</div><div class=""> -disable-namedmd-remove - Do not remove global named metadata</div><div class=""> -enable-import-metadata - Enable import metadata like 'thinlto_src_module'</div><div class=""> -enable-noalias-to-md-conversion - Convert noalias attributes to metadata during inlining.</div><div class=""> -lto-strip-invalid-debug-info - Strip invalid debug info metadata during LTO instead of aborting.</div></div><div class=""><br class=""></div><div class="">And I don't think these help.</div><div class=""><br class=""></div><div class="">Any suggestion?</div><div class=""><br class=""></div><div class="">Thanks</div><div class="">Hongbin</div></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>