<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Sushant,<br>
<br>
llvm already has an implementation for some simple cases of SROA for
globals. <br>
Check SRAGlobal() from /lib/Transforms/IPO/GlobalOpt.cpp.<br>
<br>
Thank you, Alexey.
<p><br>
</p>
<div class="moz-cite-prefix">On 25.03.2021 09:01, sushant gokhale
via llvm-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CANKDUrQZaRnqvfkU54X_7hAHHeWJttei-mrYSd7V1-ctsGrUAw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>hi,</div>
<div><br>
</div>
<div>My requirement is if I have an global array, then can I
break it into individual elements similar to what SROA does ?
I know that allocation for globals is different from those of
locals but still asking.</div>
<div><br>
</div>
<div>Regards</div>
<div>Sushant<br>
</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>