<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">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 color="#555555" face="sans-serif" size="2">Thanks,</font></div><div><font color="#555555" face="sans-serif" size="2">Mingming</font></div></div></div></div></div></div></div></div></div>