<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>See llvm-reduce.  <br>
    </p>
    <p>Philip<br>
    </p>
    <div class="moz-cite-prefix">On 11/18/21 9:14 AM, Mingming Liu via
      llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAENFzpus4pGfdHyg+NZ0DuSTUptwt5dk4R3Jf0TbBhw4n75t7w@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi, 
        <div><br>
          <div>    When modifying IR for the purpose of a unit test
            (e.g., in <a
href="https://github.com/llvm/llvm-project/tree/main/llvm/test/Transforms/SROA"
              moz-do-not-send="true">https://github.com/llvm/llvm-project/tree/main/llvm/test/Transforms/SROA</a>),
            the IR generated by OPT may have metadata that's not used by
            the tested pass.</div>
          <div><br>
                Are there some general suggestions on how to strip
            metadata? Is this mostly empirical by analyzing how the
            metadata takes effect in the e2e compiling process (i.e.,
            outside of one pass)? Any form of pointers / related threads
            in the past would be enlightening!<br>
            <br>
                 From this perspective stripping unused metadata
            manually could be error prone (e.g., for a more complex IR,
            or a test IR consisting of 10+ functions).<br clear="all">
            <div><br>
            </div>
            -- <br>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div><font size="2" face="sans-serif"
                          color="#555555">Thanks,</font></div>
                      <div><font size="2" face="sans-serif"
                          color="#555555">Mingming</font></div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
  </body>
</html>