<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<div class="moz-cite-prefix">On 07/04/2017 04:25 AM, Anastasiya
Ruzhanskaya via llvm-dev wrote:<br>
</div>
<blockquote
cite="mid:CAH7gUZY34fxaybU0jzRxoyJ45M9RuH4CtoMtV08Dv_GU+_M1XA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hello,<br>
</div>
I am developing now a compiler, based on llvm
infrastructure, so I am building my own sequence of
llvm passes with some adjustable options. <br>
<br>
</div>
I can't find really clear info about some cases, so
maybe you can help, and write:<br>
<br>
</div>
<div>0) Why I should always delete attributes before
applying optimizations with opt command? With
attributes specified no optimization can be applied.<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
You definitely shouldn't delete attributes in general. Does your
attribute set include optnone?<br>
<br>
-Hal<br>
<br>
<blockquote
cite="mid:CAH7gUZY34fxaybU0jzRxoyJ45M9RuH4CtoMtV08Dv_GU+_M1XA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div><br>
</div>
Where I can get real benefit from:<br>
</div>
1) Constant Hoisting<br>
</div>
<div>-only when we have some large reusable constants in
program?<br>
</div>
2) argpomotion<br>
</div>
- this option does not always replace all my args by reerence
with values, when I specify it.<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
</body>
</html>