<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 19, 2016 at 10:38 AM, Hongbin Zheng <span dir="ltr"><<a href="mailto:etherzhhb@gmail.com" target="_blank">etherzhhb@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Aug 19, 2016 at 10:32 AM, Mehdi Amini <span dir="ltr"><<a href="mailto:mehdi.amini@apple.com" target="_blank">mehdi.amini@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div><br></div><div><div><span><blockquote type="cite"><div>On Aug 19, 2016, at 10:24 AM, Hongbin Zheng via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br><div><div dir="ltr">Hi,<div><br></div><div>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><br></div><div><div>*** Attempting to remove named metadata: Checking for crash with only these named metadata nodes: <a href="http://llvm.dbg.cu/" target="_blank">llvm.dbg.cu</a> llvm.module.flags llvm.ident: <crash></div><div>Checking for crash with only these named metadata nodes: llvm.module.flags llvm.ident: <crash></div><div>Checking for crash with only these named metadata nodes: llvm.ident:</div><div>Checking for crash with only these named metadata nodes: llvm.module.flags: <crash></div><div>Checking for crash with only 3 named metadata operands: <crash></div><div>Checking for crash with only 2 named metadata operands: All DICompileUnits must be listed in <a href="http://llvm.dbg.cu/" target="_blank">llvm.dbg.cu</a></div><div>LLVM ERROR: Broken module found, compilation aborted!</div></div></div></div></blockquote><div><br></div></span><div><div>I had the same issue, and have some local patches to help with this.</div><div>Have you tried the   -disable-namedmd-remove option?</div></div></div></div></div></blockquote></span><div>Yep, that contains too much metadata :)</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><div><br></div><div>Also, at this point where bug point crashes, it should already have dumped a module.</div></div></div></div></div></blockquote></span><div>Thanks for pointing this out. let me check</div></div></div></div></blockquote><div>Looks like ListReducer::reduceList do not dump module during the iteration. The module dumped is not "new" enough for me.</div><div><br></div><div>Thanks</div><div>Hongbin</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><div><br></div><div>— </div><div>Mehdi</div><div><br></div></div><br><blockquote type="cite"><div><span><div dir="ltr"><div><br></div><div><br></div><div>This crash bugpoint itself. Is there away to prevent bugpoint from doing this rather than changing the source code of bugpoint?</div><div><br></div><div>I tried to run a "bugpoint --help-hidden" and get the following options related to metadata:</div><div><div>    -lowertypetests                                        - Lower type metadata</div><div>  -disable-namedmd-remove                                  - Do not remove global named metadata</div><div>  -enable-import-metadata                                  - Enable import metadata like 'thinlto_src_module'</div><div>  -enable-noalias-to-md-conversi<wbr>on                         - Convert noalias attributes to metadata during inlining.</div><div>  -lto-strip-invalid-debug-info                            - Strip invalid debug info metadata during LTO instead of aborting.</div></div><div><br></div><div>And I don't think these help.</div><div><br></div><div>Any suggestion?</div><div><br></div><div>Thanks</div><div>Hongbin</div></div></span>
______________________________<wbr>_________________<br>LLVM Developers mailing list<br><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br></div></blockquote></div><br></div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>