<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">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">llvm.dbg.cu</a></div><div>LLVM ERROR: Broken module found, compilation aborted!</div></div><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-conversion                         - 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>