<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
This compiler does not have mem-SSA, as far as I know, only few
pass can propagate value along memory. <br>
<br>
You need to promote those local variable into register first before
sccp is invoked. <br>
e.g1. opt a.ll -basicaa -gvn -sccp -S<br>
eg.2. opt a.ll -sroa -sccp -S<br>
<br>
<div class="moz-cite-prefix">On 4/16/13 12:37 PM, Niko Zarzani
wrote:<br>
</div>
<blockquote cite="mid:DUB116-W903938DC408480A89FABADB1CD0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi all,
<div><br>
</div>
<div>I am trying to see how single llvm optimizations work by
running them one by one with opt and looking how the IR
changes.</div>
<div>Since I was interested in seeing how constant propagation
was working I tried to run opt on the Sparse Conditional
Constant Propagation, however by passing as argument -S -sccp
-die it does not change anything in the output IR code. <span
style="font-size: 12pt; ">I attached the file with the
source code I used, I think that the x value in that example
should be propagated in the mul instruction. </span><span
style="font-size: 12pt; ">What am I missing?</span></div>
<div><br>
</div>
<div>Thank you in advance,</div>
<div><br>
</div>
<div>Niko</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>