<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.xapple-converted-space
        {mso-style-name:x_apple-converted-space;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Folks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I’m implementing DI metadata support for llvm-reduce as a part of my MSc project like
<a id="OWAAM58B7AFB1A54345B09F6CC03815EB6A1B" href="mailto:jeremy.morse@sony.com">
<span style="font-family:"Calibri",sans-serif;text-decoration:none">@Morse, Jeremy</span></a> mentioned.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Nabeel<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> llvm-dev <llvm-dev-bounces@lists.llvm.org>
<b>On Behalf Of </b>Djordje Todorovic via llvm-dev<br>
<b>Sent:</b> 07 June 2021 15:01<br>
<b>To:</b> Adrian Prantl <aprantl@apple.com><br>
<b>Cc:</b> llvm-dev@lists.llvm.org; ibaev@cisco.com; Morse, Jeremy <jeremy.morse@sony.com>; asowda@cisco.com; Petar Jovanovic <petar.jovanovic@syrmia.com><br>
<b>Subject:</b> Re: [llvm-dev] RFC: Reducing metadata in LLVM tests<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;color:black">Hi Adrian,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;color:black">I'm not opposed to adding something like this into the llvm-reduce (ReduceMetadata) utility, and I think it will be a better way.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><a id="OWAAM393350" href="mailto:jeremy.morse@sony.com"><span style="font-size:12.0pt;font-family:"Calibri",sans-serif;text-decoration:none">@Jeremy Morse</span></a><span style="font-size:12.0pt;color:black"> has
 mentioned that someone from SONY is working on something like this -- I am happy with that and I just want to avoid redundant work.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;color:black">Best regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;color:black">Djordje<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div style="margin-left:36.0pt">
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span style="color:black">From:</span></b><span style="color:black"> Adrian Prantl <</span><a href="mailto:aprantl@apple.com">aprantl@apple.com</a><span style="color:black">><br>
<b>Sent:</b> Friday, June 4, 2021 7:42 PM<br>
<b>To:</b> Djordje Todorovic <</span><a href="mailto:Djordje.Todorovic@syrmia.com">Djordje.Todorovic@syrmia.com</a><span style="color:black">><br>
<b>Cc:</b> </span><a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><span style="color:black"> <</span><a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><span style="color:black">>; Jeremy Morse <</span><a href="mailto:jeremy.morse@sony.com">jeremy.morse@sony.com</a><span style="color:black">>;
 Petar Jovanovic <</span><a href="mailto:petar.jovanovic@syrmia.com">petar.jovanovic@syrmia.com</a><span style="color:black">>;
</span><a href="mailto:asowda@cisco.com">asowda@cisco.com</a><span style="color:black"> <</span><a href="mailto:asowda@cisco.com">asowda@cisco.com</a><span style="color:black">>;
</span><a href="mailto:ibaev@cisco.com">ibaev@cisco.com</a><span style="color:black"> <</span><a href="mailto:ibaev@cisco.com">ibaev@cisco.com</a><span style="color:black">><br>
<b>Subject:</b> Re: RFC: Reducing metadata in LLVM tests</span> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">Hi Djordje,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt">I think something like this would be super useful. Can you explain how it differs from the metadata reduction in bugpoint and to what degree the two share (or could share) code?
<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt">-- adrian<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-left:36.0pt">On Jun 4, 2021, at 7:06 AM, Djordje Todorovic <<a href="mailto:djordje.todorovic@syrmia.com">djordje.todorovic@syrmia.com</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt">Hi,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt">We are seeing that the LLVM test suite grows every day, so there is always a need for reducing the new tests as well as the old ones. There are tools designed to do that, e.g. [0]
 and [1]. When an IR (or MIR) test contains Debug Info, the LLVM DI Metadata makes the test obviously longer. Not all of these metadata are always necessary for the test, so reviewers frequently ask patch submitters for a reduced test case in terms of DI Metadata
 by recommending some tricks described in [2]. The [2] is just a small proposal for a utility tool that will save us some time (when fully implemented) during making the patches as well as when doing code reviews -- any thoughts on this?
<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt">[0]<span class="xapple-converted-space"> </span></span><a href="https://urldefense.com/v3/__https:/llvm.org/docs/CommandGuide/bugpoint.html__;!!JmoZiZGBv3RvKRSx!pgL-WcuUHkT34ETitKYsYZZse3iovVMZSi0B7k3j7wAbkGmbfppl6f9HJbMeUUw$"><span style="font-size:12.0pt">https://llvm.org/docs/CommandGuide/bugpoint.html</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt">[1]<span class="xapple-converted-space"> </span></span><a href="https://urldefense.com/v3/__https:/blog.regehr.org/archives/2109__;!!JmoZiZGBv3RvKRSx!pgL-WcuUHkT34ETitKYsYZZse3iovVMZSi0B7k3j7wAbkGmbfppl6f9HUio4nP0$"><span style="font-size:12.0pt">https://blog.regehr.org/archives/2109</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt">[2]<span class="xapple-converted-space"> </span></span><a href="https://urldefense.com/v3/__https:/github.com/djolertrk/llvm-metadataburn__;!!JmoZiZGBv3RvKRSx!pgL-WcuUHkT34ETitKYsYZZse3iovVMZSi0B7k3j7wAbkGmbfppl6f9HJxkDV6E$"><span style="font-size:12.0pt">https://github.com/djolertrk/llvm-metadataburn</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt">Best regards,<o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><span style="font-size:12.0pt">Djordje<o:p></o:p></span></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>