<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=iso-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</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-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D">Basically I wanted to see if hot blocks are ending up with copies, when we may have been better off having copies in a cold pred or cold succ etc<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Umesh Kalappa [mailto:umesh.kalappa0@gmail.com]
<br>
<b>Sent:</b> Monday, August 27, 2012 11:27 AM<br>
<b>To:</b> Rafael Espíndola<br>
<b>Cc:</b> Ramanarayanan, Ramshankar; llvmdev@cs.uiuc.edu<br>
<b>Subject:</b> Re: [LLVMdev] info on coming out of SSA form<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi RamShankar,<br>
<br>
On top of Rafael mentioned ,Please check with <br>
<br>
lib/CodeGen/StrongPHIElimination.cpp and the papers like <br>
<br>
Budimlic, et al. Fast copy coalescing and live-range identification.<br>
//    In Proceedings of the ACM SIGPLAN 2002 Conference on Programming Language<br>
//    Design and Implementation (Berlin, Germany, June 17 - 19, 2002).<br>
//    PLDI '02. ACM, New York, NY, 25-32.<br>
 Boissinot, et al. Revisiting Out-of-SSA Translation for Correctness, Code<br>
//     Quality and Efficiency,<br>
//   In Proceedings of the 7th annual IEEE/ACM International Symposium on Code<br>
//   Generation and Optimization (Seattle, Washington, March 22 - 25, 2009).<br>
//   CGO '09. IEEE, Washington, DC, 114-125.<br>
<br>
It will be good ,If you mention the what are trying to achieve here ..<br>
<br>
Thanks <br>
~Umesh <br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">On Sun, Aug 26, 2012 at 9:13 PM, Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">On 24 August 2012 02:27, Ramanarayanan, Ramshankar<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><<a href="mailto:Ramshankar.Ramanarayanan@amd.com" target="_blank">Ramshankar.Ramanarayanan@amd.com</a>> wrote:<br>
> Hi,<br>
><br>
><br>
><br>
> I am a newbie to llvm. I am wondering what approach is used when coming out<br>
> of SSA form. I also appreciate pointers on where to look in the source code<br>
> for this phase.<br>
><o:p></o:p></p>
</div>
<p class="MsoNormal">lib/CodeGen/PHIElimination.cpp is probably what you want.<br>
<br>
><br>
> Best regards,<br>
><br>
> Ram Ramshankar<br>
><br>
<br>
Cheers,<br>
Rafael<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>        
<a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>