templeos-info/public/Wb/Compiler/OptPass6.HC.HTML

217 lines
23 KiB
Plaintext
Raw Normal View History

2024-03-24 21:24:44 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre id="content">
<a name="l1"></a><span class=cF1>Bool</span><span class=cF0> </span><span class=cFD>OptIC6</span><span class=cF0>(</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi)
<a name="l2"></a>{
<a name="l3"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpil1;
<a name="l4"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_code&lt;</span><span class=cF3>IC_IMM_I64</span><span class=cF0> || !</span><span class=cF7>(</span><span class=cF0>tmpil1=</span><span class=cFD>OptLag1</span><span class=cF0>(tmpi)</span><span class=cF7>)</span><span class=cF0>)
<a name="l5"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l6"></a> </span><span class=cF1>if</span><span class=cF0> (tmpil1-&gt;ic_code==</span><span class=cF3>IC_ADD_CONST</span><span class=cF0> &amp;&amp; tmpi-&gt;ic_code==</span><span class=cF3>IC_DEREF</span><span class=cF0> &amp;&amp;
<a name="l7"></a> tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_ARG1_WAS_STK</span><span class=cF0> &amp;&amp; tmpi-&gt;arg1.type&amp;</span><span class=cF3>MDF_REG</span><span class=cF0> &amp;&amp;
<a name="l8"></a> tmpil1-&gt;res.type&amp;</span><span class=cF3>MDF_REG</span><span class=cF0> &amp;&amp; </span><span class=cF3>I32_MIN</span><span class=cF0>&lt;=tmpil1-&gt;ic_data&lt;=</span><span class=cF3>I32_MAX</span><span class=cF0> &amp;&amp;
<a name="l9"></a> !</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;</span><span class=cFB>cmp</span><span class=cF0>.non_ptr_vars_mask,tmpil1-&gt;arg1.</span><span class=cF1>reg</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l10"></a> </span><span class=cF1>if</span><span class=cF0> (tmpil1-&gt;arg1.type&amp;</span><span class=cF3>MDF_REG</span><span class=cF0>) {
<a name="l11"></a> tmpi-&gt;ic_flags=tmpi-&gt;ic_flags&amp;~</span><span class=cF3>ICF_ARG1_WAS_STK</span><span class=cF0> | tmpil1-&gt;ic_flags;
<a name="l12"></a> tmpi-&gt;ic_code=</span><span class=cF3>IC_MOV</span><span class=cF0>;
<a name="l13"></a> tmpi-&gt;arg1.type=</span><span class=cF3>MDF_DISP</span><span class=cF0>+tmpi-&gt;arg1_type_pointed_to;
<a name="l14"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>=tmpil1-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>;
<a name="l15"></a> tmpi-&gt;arg1.disp=tmpil1-&gt;ic_data;
<a name="l16"></a> </span><span class=cFD>OptSetNOP2</span><span class=cF0>(tmpil1,-1);
<a name="l17"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l18"></a> tmpil1-&gt;ic_code=</span><span class=cF3>IC_MOV</span><span class=cF0>;
<a name="l19"></a> tmpi-&gt;ic_code=</span><span class=cF3>IC_MOV</span><span class=cF0>;
<a name="l20"></a> tmpi-&gt;arg1.type=</span><span class=cF3>MDF_DISP</span><span class=cF0>+tmpi-&gt;arg1_type_pointed_to;
<a name="l21"></a> tmpi-&gt;arg1.disp=tmpil1-&gt;ic_data;
<a name="l22"></a> }
<a name="l23"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l24"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l25"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l26"></a>}
<a name="l27"></a>
<a name="l28"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>OptPass6Lag</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc,</span><span class=cF9>CPrsStk</span><span class=cF0> *ps,</span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,
<a name="l29"></a> </span><span class=cF9>I64</span><span class=cF0> *_stk_ptr,</span><span class=cF9>I64</span><span class=cF0> reg_stk_size,</span><span class=cF9>I64</span><span class=cF0> *_clobbered_reg_mask)
<a name="l30"></a>{
<a name="l31"></a> </span><span class=cF9>I64</span><span class=cF0> stk_ptr=*_stk_ptr,code,
<a name="l32"></a> clobbered_stk_tmp_mask,clobbered_reg_mask=*_clobbered_reg_mask;
<a name="l33"></a> </span><span class=cF9>CHashFun</span><span class=cF0> *tmpf;
<a name="l34"></a> code=tmpi-&gt;ic_code;
<a name="l35"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_PASS_TRACE</span><span class=cF0> &amp;&amp; </span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;cc-&gt;saved_pass_trace,6</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l36"></a> </span><span class=cF6>&quot;%2d:&quot;</span><span class=cF0>,stk_ptr;
<a name="l37"></a> </span><span class=cFD>ICPut</span><span class=cF0>(cc,tmpi);
<a name="l38"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l39"></a> </span><span class=cF1>if</span><span class=cF0> (code==</span><span class=cF3>IC_CALL_START</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l40"></a> </span><span class=cF1>if</span><span class=cF0> (reg_stk_size==1 &amp;&amp; stk_ptr&gt;0)
<a name="l41"></a> clobbered_stk_tmp_mask=</span><span class=cF3>REGG_STK_TMP</span><span class=cF0>;
<a name="l42"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l43"></a> clobbered_stk_tmp_mask=0;
<a name="l44"></a> </span><span class=cF1>if</span><span class=cF0> (tmpf=tmpi-&gt;ic_data) {
<a name="l45"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;tmpf-&gt;flags,</span><span class=cF3>Ff_INTERNAL</span><span class=cF7>)</span><span class=cF0>)
<a name="l46"></a> clobbered_stk_tmp_mask=0;
<a name="l47"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l48"></a> clobbered_stk_tmp_mask&amp;=tmpf-&gt;clobbered_reg_mask;
<a name="l49"></a> clobbered_reg_mask|=tmpf-&gt;clobbered_reg_mask;
<a name="l50"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l51"></a> }
<a name="l52"></a> tmpi-&gt;ic_data=clobbered_stk_tmp_mask;
<a name="l53"></a> </span><span class=cFD>PrsPush</span><span class=cF0>(ps,stk_ptr);
<a name="l54"></a> </span><span class=cFD>PrsPush</span><span class=cF0>(ps,clobbered_stk_tmp_mask);
<a name="l55"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (code==</span><span class=cF3>IC_CALL_END</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l56"></a> tmpi-&gt;ic_data=</span><span class=cFD>PrsPop</span><span class=cF0>(ps);
<a name="l57"></a> stk_ptr=</span><span class=cFD>PrsPop</span><span class=cF0>(ps);
<a name="l58"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (code==</span><span class=cF3>IC_CALL_END2</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l59"></a> ps-&gt;ptr--;
<a name="l60"></a> stk_ptr=</span><span class=cFD>PrsPop</span><span class=cF0>(ps);
<a name="l61"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l62"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFD>intermediate_code_table</span><span class=cF0>[code].arg_cnt==</span><span class=cF3>IS_V_ARG</span><span class=cF0>)
<a name="l63"></a> stk_ptr-=tmpi-&gt;ic_data&gt;&gt;3;
<a name="l64"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg2.type&amp;</span><span class=cF3>MDF_STK</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l65"></a> stk_ptr--;
<a name="l66"></a> </span><span class=cF1>if</span><span class=cF0> (stk_ptr&lt;reg_stk_size) {
<a name="l67"></a> tmpi-&gt;arg2.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+tmpi-&gt;arg2.type.raw_type;
<a name="l68"></a> tmpi-&gt;arg2.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF5>Bsf</span><span class=cF0>(</span><span class=cF3>REGG_STK_TMP</span><span class=cF0>);
<a name="l69"></a> tmpi-&gt;arg2.disp=0;
<a name="l70"></a> }
<a name="l71"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l72"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg1.type&amp;</span><span class=cF3>MDF_STK</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l73"></a> stk_ptr--;
<a name="l74"></a> </span><span class=cF1>if</span><span class=cF0> (stk_ptr&lt;reg_stk_size) {
<a name="l75"></a> tmpi-&gt;arg1.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+tmpi-&gt;arg1.type.raw_type;
<a name="l76"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF5>Bsf</span><span class=cF0>(</span><span class=cF3>REGG_STK_TMP</span><span class=cF0>);
<a name="l77"></a> tmpi-&gt;arg1.disp=0;
<a name="l78"></a> }
<a name="l79"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l80"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;res.type&amp;</span><span class=cF3>MDF_STK</span><span class=cF0> &amp;&amp; !</span><span class=cF7>(</span><span class=cF0>tmpi-&gt;ic_flags &amp; </span><span class=cF3>ICF_PUSH_RES</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l81"></a> stk_ptr++;
<a name="l82"></a> </span><span class=cF1>if</span><span class=cF0> (stk_ptr&lt;=reg_stk_size) {
<a name="l83"></a> tmpi-&gt;res.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+tmpi-&gt;res.type.raw_type;
<a name="l84"></a> tmpi-&gt;res.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF5>Bsf</span><span class=cF0>(</span><span class=cF3>REGG_STK_TMP</span><span class=cF0>);
<a name="l85"></a> clobbered_reg_mask|=</span><span class=cF3>REGG_STK_TMP</span><span class=cF0>;
<a name="l86"></a> tmpi-&gt;res.disp=0;
<a name="l87"></a> }
<a name="l88"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l89"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cFD>OptIC6</span><span class=cF7>(</span><span class=cF0>tmpi</span><span class=cF7>)</span><span class=cF0>);
<a name="l90"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;res.type.raw_type!=</span><span class=cF3>RT_F64</span><span class=cF0> &amp;&amp; !</span><span class=cF7>(</span><span class=cF0>tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_USE_F64</span><span class=cF7>)</span><span class=cF0>)
<a name="l91"></a> tmpi-&gt;ic_flags|=</span><span class=cF3>ICF_USE_INT</span><span class=cF0>;
<a name="l92"></a> *_stk_ptr=stk_ptr;
<a name="l93"></a> *_clobbered_reg_mask=clobbered_reg_mask;
<a name="l94"></a>}
<a name="l95"></a>
<a name="l96"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cFD>OptPass6</span><span class=cF0>(</span><span class=cF9>CCmpCtrl</span><span class=cF0> *cc)
<a name="l97"></a>{
<a name="l98"></a> </span><span class=cF9>CIntermediateCode</span><span class=cF0> *tmpi,*tmpi_next,*tmpil1,*tmpil2,*old_tmpil2;
<a name="l99"></a> </span><span class=cF9>I64</span><span class=cF0> stk_ptr=0,reg_stk_size,clobbered_reg_mask=</span><span class=cF3>REGG_CLOBBERED</span><span class=cF0>;
<a name="l100"></a> </span><span class=cF9>CPrsStk</span><span class=cF0> *ps=cc-&gt;ps;
<a name="l101"></a> ps-&gt;ptr=0;
<a name="l102"></a> ps-&gt;ptr2=0;
<a name="l103"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;cc-&gt;opts,</span><span class=cF3>OPTf_NO_REG_VAR</span><span class=cF7>)</span><span class=cF0> || cc-&gt;flags&amp;</span><span class=cF3>CCF_NO_REG_OPT</span><span class=cF0>)
<a name="l104"></a> reg_stk_size=0;
<a name="l105"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l106"></a> reg_stk_size=1;
<a name="l107"></a>#</span><span class=cF1>assert</span><span class=cF0> </span><span class=cF3>REGG_STK_TMP</span><span class=cF0>==1&lt;&lt;9
<a name="l108"></a> tmpi=cc-&gt;coc.coc_head.next;
<a name="l109"></a> old_tmpil2=</span><span class=cF3>NULL</span><span class=cF0>;
<a name="l110"></a> tmpil1=tmpil2=&amp;</span><span class=cFB>cmp</span><span class=cF0>.ic_nop;
<a name="l111"></a> </span><span class=cF1>while</span><span class=cF0> (tmpi-&gt;ic_code) </span><span class=cF7>{</span><span class=cF0>
<a name="l112"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_code&gt;</span><span class=cF3>IC_NOP2</span><span class=cF0>) {
<a name="l113"></a> </span><span class=cF1>if</span><span class=cF0> (tmpil1-&gt;ic_code&gt;</span><span class=cF3>IC_NOP2</span><span class=cF0>)
<a name="l114"></a> tmpil2=tmpil1;
<a name="l115"></a> tmpil1=tmpi;
<a name="l116"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg2.type&amp;</span><span class=cF3>MDF_STK</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l117"></a> </span><span class=cF1>if</span><span class=cF0> (tmpil2-&gt;res.type&amp;</span><span class=cF3>MDF_STK</span><span class=cF0> &amp;&amp;
<a name="l118"></a> !</span><span class=cF7>(</span><span class=cF0>tmpil2-&gt;ic_flags&amp;</span><span class=cF3>ICF_PUSH_RES</span><span class=cF7>)</span><span class=cF0>) {
<a name="l119"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_code==</span><span class=cF3>IC_ASSIGN</span><span class=cF0> &amp;&amp; tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_BY_VAL</span><span class=cF0> &amp;&amp;
<a name="l120"></a> tmpi-&gt;ic_flags&amp;</span><span class=cF3>ICF_RES_NOT_USED</span><span class=cF0> &amp;&amp;
<a name="l121"></a> tmpil2-&gt;ic_code!=</span><span class=cF3>IC_CALL_END</span><span class=cF0> &amp;&amp;
<a name="l122"></a> tmpil2-&gt;ic_code!=</span><span class=cF3>IC_CALL_END2</span><span class=cF0> &amp;&amp;
<a name="l123"></a> tmpil2-&gt;ic_code!=</span><span class=cF3>IC_SET_RAX</span><span class=cF0> &amp;&amp;
<a name="l124"></a> !</span><span class=cF7>(</span><span class=cF0>tmpi-&gt;ic_flags&amp;(</span><span class=cF3>ICF_ARG2_TO_F64</span><span class=cF0>|</span><span class=cF3>ICF_ARG2_TO_INT</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0> &amp;&amp;
<a name="l125"></a> !</span><span class=cF7>(</span><span class=cF0>tmpil2-&gt;ic_flags&amp;(</span><span class=cF3>ICF_RES_TO_F64</span><span class=cF0>|</span><span class=cF3>ICF_RES_TO_INT</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l126"></a> tmpil2-&gt;res.type =tmpi-&gt;arg1.type&amp;</span><span class=cF3>MDG_MASK</span><span class=cF0>+
<a name="l127"></a> tmpi-&gt;arg1_type_pointed_to;
<a name="l128"></a> tmpil2-&gt;res.</span><span class=cF1>reg</span><span class=cF0> =tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>;
<a name="l129"></a> tmpil2-&gt;res.disp =tmpi-&gt;arg1.disp;
<a name="l130"></a> tmpil2-&gt;ic_flags=tmpil2-&gt;ic_flags
<a name="l131"></a> &amp;~(</span><span class=cF3>ICF_RES_NOT_USED</span><span class=cF0>|</span><span class=cF3>ICF_RES_WAS_STK</span><span class=cF0>)
<a name="l132"></a> |tmpi-&gt;ic_flags&amp;~(</span><span class=cF3>ICF_BY_VAL</span><span class=cF0>|</span><span class=cF3>ICF_ARG1_WAS_STK</span><span class=cF0>|</span><span class=cF3>ICF_ARG2_WAS_STK</span><span class=cF0>);
<a name="l133"></a> old_tmpil2=</span><span class=cF3>NULL</span><span class=cF0>;
<a name="l134"></a> </span><span class=cFD>OptSetNOP1</span><span class=cF0>(tmpi);
<a name="l135"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l136"></a> tmpi-&gt;arg2.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+tmpi-&gt;arg2.type.raw_type;
<a name="l137"></a> tmpi-&gt;arg2.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_RAX</span><span class=cF0>;
<a name="l138"></a> tmpi-&gt;arg2.disp=0;
<a name="l139"></a> tmpil2-&gt;res.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+tmpil2-&gt;res.type.raw_type;
<a name="l140"></a> tmpil2-&gt;res.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_RAX</span><span class=cF0>;
<a name="l141"></a> tmpil2-&gt;res.disp=0;
<a name="l142"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l143"></a> }
<a name="l144"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;arg1.type&amp;</span><span class=cF3>MDF_STK</span><span class=cF0> &amp;&amp; tmpil2-&gt;res.type&amp;</span><span class=cF3>MDF_STK</span><span class=cF0> &amp;&amp;
<a name="l145"></a> !</span><span class=cF7>(</span><span class=cF0>tmpil2-&gt;ic_flags&amp;</span><span class=cF3>ICF_PUSH_RES</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l146"></a> tmpi-&gt;arg1.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+tmpi-&gt;arg1.type.raw_type;
<a name="l147"></a> tmpi-&gt;arg1.disp=0;
<a name="l148"></a> tmpil2-&gt;res.type=</span><span class=cF3>MDF_REG</span><span class=cF0>+tmpil2-&gt;res.type.raw_type;
<a name="l149"></a> tmpil2-&gt;res.disp=0;
<a name="l150"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFD>intermediate_code_table</span><span class=cF0>[tmpi-&gt;ic_code].arg_cnt==</span><span class=cF3>IS_2_ARG</span><span class=cF0>) {
<a name="l151"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_R8</span><span class=cF0>;
<a name="l152"></a> tmpil2-&gt;res.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_R8</span><span class=cF0>;
<a name="l153"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l154"></a> tmpi-&gt;arg1.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_RAX</span><span class=cF0>;
<a name="l155"></a> tmpil2-&gt;res.</span><span class=cF1>reg</span><span class=cF0>=</span><span class=cF3>REG_RAX</span><span class=cF0>;
<a name="l156"></a> }
<a name="l157"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l158"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_flags &amp; </span><span class=cF3>ICF_PUSH_RES</span><span class=cF0>)
<a name="l159"></a> tmpi-&gt;res.type==</span><span class=cF3>MDF_STK</span><span class=cF0>+tmpi-&gt;res.type.raw_type;
<a name="l160"></a> </span><span class=cF1>if</span><span class=cF0> (old_tmpil2!=tmpil2) </span><span class=cF7>{</span><span class=cF0>
<a name="l161"></a> </span><span class=cF1>if</span><span class=cF0> (tmpil2-&gt;ic_code&gt;</span><span class=cF3>IC_NOP2</span><span class=cF0>)
<a name="l162"></a> </span><span class=cFD>OptPass6Lag</span><span class=cF0>(cc,ps,tmpil2,&amp;stk_ptr,reg_stk_size,&amp;clobbered_reg_mask);
<a name="l163"></a> old_tmpil2=tmpil2;
<a name="l164"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l165"></a> }
<a name="l166"></a> tmpi_next=tmpi-&gt;next;
<a name="l167"></a> </span><span class=cF1>if</span><span class=cF0> (tmpi-&gt;ic_code&lt;=</span><span class=cF3>IC_NOP2</span><span class=cF0>)
<a name="l168"></a> </span><span class=cFD>OptFree</span><span class=cF0>(tmpi);
<a name="l169"></a> tmpi=tmpi_next;
<a name="l170"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l171"></a> </span><span class=cF1>if</span><span class=cF0> (ps-&gt;ptr&gt;2) </span><span class=cF7>{</span><span class=cF0>
<a name="l172"></a> </span><span class=cF6>&quot;Pass:%d Stk:%08X\n&quot;</span><span class=cF0>,cc-&gt;pass,ps-&gt;ptr;
<a name="l173"></a> </span><span class=cF5>LexExcept</span><span class=cF0>(cc,</span><span class=cF6>&quot;Compiler Optimization Error at &quot;</span><span class=cF0>);
<a name="l174"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l175"></a> </span><span class=cF1>if</span><span class=cF0> (cc-&gt;htc.fun) </span><span class=cF7>{</span><span class=cF0>
<a name="l176"></a> cc-&gt;htc.fun-&gt;used_reg_mask&amp;=~</span><span class=cF3>REGG_STK_TMP</span><span class=cF0>;
<a name="l177"></a> cc-&gt;htc.fun-&gt;used_reg_mask|=clobbered_reg_mask;
<a name="l178"></a> cc-&gt;htc.fun-&gt;clobbered_reg_mask=clobbered_reg_mask;
<a name="l179"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;cc-&gt;flags,</span><span class=cF3>CCf_PASS_TRACE_PRESENT</span><span class=cF7>)</span><span class=cF0> &amp;&amp;
<a name="l180"></a> </span><span class=cF5>Bt</span><span class=cF7>(</span><span class=cF0>&amp;cc-&gt;saved_pass_trace,6</span><span class=cF7>)</span><span class=cF0>) {
<a name="l181"></a> </span><span class=cF6>&quot;Used Reg Mask:%04X\n&quot;</span><span class=cF0>,cc-&gt;htc.fun-&gt;used_reg_mask;
<a name="l182"></a> </span><span class=cF6>&quot;Clobbered Reg Mask:%04X\n&quot;</span><span class=cF0>,clobbered_reg_mask;
<a name="l183"></a> }
<a name="l184"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l185"></a>}
</span></pre></body>
</html>