<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 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@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;}
@font-face
        {font-family:Monospace;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal">Here is a last example to illustrate my concern.<o:p></o:p></p>
<p class="MsoNormal">The problem is about the lowering of node t13.<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Initial selection DAG: BB#0 '_start:entry'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">SelectionDAG has 44 nodes:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t11: i16 = Constant<0><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">                  t0: ch = EntryToken<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">                t3: ch = llvm.clp.set.rspa t0, TargetConstant:i16<392>, Constant:i32<64><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">              </span><span lang="FR-BE" style="color:#1F497D">t5: ch = llvm.clp.set.rspb t3, TargetConstant:i16<393>, Constant:i32<64><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">            t8: ch = llvm.clp.set.rspsu t5, TargetConstant:i16<394>, Constant:i32<8><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">          t13: ch = store<Volatile ST4[@x1](tbaa=<0x3dbe418>)> t8,
<span style="background:lime;mso-highlight:lime">ConstantFP:f32<1.000000e+00>,</span> GlobalAddress:i16<float* @x1> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">        t16: ch = store<Volatile ST4[@x2](tbaa=<0x3dbe418>)> t13, ConstantFP:f32<2.000000e+00>, GlobalAddress:i16<float* @x2> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">      t19: ch = store<Volatile ST4[@x3](tbaa=<0x3dbe418>)> t16, ConstantFP:f32<3.000000e+00>, GlobalAddress:i16<float* @x3> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">    t22: ch = store<Volatile ST4[@x4](tbaa=<0x3dbe418>)> t19, ConstantFP:f32<4.000000e+00>, GlobalAddress:i16<float* @x4> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">  </span><span style="color:#1F497D">t23: f32,ch = load<Volatile LD4[@x1](tbaa=<0x3dbe418>)> t22, GlobalAddress:i16<float* @x1> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t24: f32,ch = load<Volatile LD4[@x2](tbaa=<0x3dbe418>)> t23:1, GlobalAddress:i16<float* @x2> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t25: f32,ch = load<Volatile LD4[@x3](tbaa=<0x3dbe418>)> t24:1, GlobalAddress:i16<float* @x3> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t26: f32,ch = load<Volatile LD4[@x4](tbaa=<0x3dbe418>)> t25:1, GlobalAddress:i16<float* @x4> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t27: i16 = GlobalAddress<float (float, float, float, float)* @fdivfaddfmul_a> 0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t29: ch,glue = callseq_start t26:1, TargetConstant:i16<4><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t31: ch,glue = CLPISD::COPY_TO_CALLEE_A t29, t23, FrameIndex:i16<0>, t29:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t33: ch,glue = CLPISD::COPY_TO_CALLEE_A t31, t24, FrameIndex:i16<1>, t31:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t35: ch,glue = CLPISD::COPY_TO_CALLEE_A t33, t25, FrameIndex:i16<2>, t33:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t37: ch,glue = CLPISD::COPY_TO_CALLEE_A t35, t26, FrameIndex:i16<3>, t35:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t39: ch,glue = CLPISD::CALLSEQ t37, TargetGlobalAddress:i16<float (float, float, float, float)* @fdivfaddfmul_a> 0, t37:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  </span><span lang="FR-BE" style="color:#1F497D">t41: ch,glue = callseq_end t39, TargetConstant:i16<4>, TargetConstant:i16<0>, t39:1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">    </span><span style="color:#1F497D">t42: f32,ch,glue = CLPISD::COPY_TO_CALLER_A t41, FrameIndex:i16<0>, t41:1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">  t43: ch = CLPISD::RET_FLAG t42:1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal">This node is first ‘combined’ into node t51 (bitcast of ConstantFP f32 to Constant i32).<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Combining: t13: ch = store<Volatile ST4[@x1](tbaa=<0x3dbe418>)> t8, ConstantFP:f32<1.000000e+00>, GlobalAddress:i16<float* @x1> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">... into: t51: ch = store<Volatile ST4[@x1](tbaa=<0x3dbe418>)> t8, Constant:i32<1065353216>, GlobalAddress:i16<float* @x1> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal">An a new Constant:i32 node (t50) is created.<o:p></o:p></p>
<p class="MsoNormal"><i>The question is: Where in the graph is created this node?<o:p></o:p></i></p>
<p class="MsoNormal">This node seems to be created before the EntryToken !!! Before the initialization of my Stack Pointer registers (RSPA,RSPB,RSPSU).<o:p></o:p></p>
<p class="MsoNormal">Why isn’t it created between t8 and t51?<o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">                  </span><span lang="FR-BE" style="color:#1F497D">t0: ch = EntryToken<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">                t3: ch = llvm.clp.set.rspa t0, TargetConstant:i16<392>, Constant:i32<64><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">              t5: ch = llvm.clp.set.rspb t3, TargetConstant:i16<393>, Constant:i32<64><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">            t8: ch = llvm.clp.set.rspsu t5, TargetConstant:i16<394>, Constant:i32<8><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">          t51: ch = store<Volatile ST4[@x1](tbaa=<0x3dbe418>)> t8,
<span style="background:lime;mso-highlight:lime">Constant:i32<1065353216></span>, TargetGlobalAddress:i32<float* @x1> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">        t49: ch = store<Volatile ST4[@x2](tbaa=<0x3dbe418>)> t51, Constant:i32<1073741824>, TargetGlobalAddress:i32<float* @x2> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">      t47: ch = store<Volatile ST4[@x3](tbaa=<0x3dbe418>)> t49, Constant:i32<1077936128>, TargetGlobalAddress:i32<float* @x3> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">    t45: ch = store<Volatile ST4[@x4](tbaa=<0x3dbe418>)> t47, Constant:i32<1082130432>, TargetGlobalAddress:i32<float* @x4> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">  </span><span style="color:#1F497D">t23: f32,ch = load<Volatile LD4[@x1](tbaa=<0x3dbe418>)> t45, TargetGlobalAddress:i32<float* @x1> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t24: f32,ch = load<Volatile LD4[@x2](tbaa=<0x3dbe418>)> t23:1, TargetGlobalAddress:i32<float* @x2> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t25: f32,ch = load<Volatile LD4[@x3](tbaa=<0x3dbe418>)> t24:1, TargetGlobalAddress:i32<float* @x3> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t26: f32,ch = load<Volatile LD4[@x4](tbaa=<0x3dbe418>)> t25:1, TargetGlobalAddress:i32<float* @x4> 0, undef:i16<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t29: ch,glue = callseq_start t26:1, TargetConstant:i16<4><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t31: ch,glue = CLPISD::COPY_TO_CALLEE_A t29, t23, TargetFrameIndex:i16<0>, t29:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t33: ch,glue = CLPISD::COPY_TO_CALLEE_A t31, t24, TargetFrameIndex:i16<1>, t31:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t35: ch,glue = CLPISD::COPY_TO_CALLEE_A t33, t25, TargetFrameIndex:i16<2>, t33:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t37: ch,glue = CLPISD::COPY_TO_CALLEE_A t35, t26, TargetFrameIndex:i16<3>, t35:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t39: ch,glue = CLPISD::CALLSEQ t37, TargetGlobalAddress:i16<float (float, float, float, float)* @fdivfaddfmul_a> 0, t37:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  </span><span lang="FR-BE" style="color:#1F497D">t41: ch,glue = callseq_end t39, TargetConstant:i16<4>, TargetConstant:i16<0>, t39:1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">    </span><span style="color:#1F497D">t42: f32,ch,glue = CLPISD::COPY_TO_CALLER_A t41, TargetFrameIndex:i16<0>, t41:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  </span><span lang="FR-BE" style="color:#1F497D">t43: ch = CLPISD::RET_FLAG t42:1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ISEL: Starting pattern match on root node: t50: i32 = Constant<1065353216><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  Initial Opcode index to 415<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  TypeSwitch[i32] from 416 to 432<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  <span style="background:lime;mso-highlight:lime">
Morphed node: t50: i32 = MOVSUTO_A_iSLo TargetConstant:i32<1065353216></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Monospace;color:black;background:silver;mso-highlight:silver">def</span><span style="font-size:10.0pt;font-family:Monospace;color:black"> : Pat<(f32 fpimm:$imm),</span><span style="font-size:10.0pt;font-family:Monospace"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Monospace;color:black">                        (MOVSUTO_A_iSLo (bitcast_fpimm_to_i32 f32:$imm))>;</span><span style="font-size:10.0pt;font-family:Monospace"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Monospace;color:black;background:silver;mso-highlight:silver">def</span><span style="font-size:10.0pt;font-family:Monospace;color:black"> : Pat<(i32 imm:$imm),</span><span style="font-size:10.0pt;font-family:Monospace"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Monospace;color:black">                        (MOVSUTO_A_iSLo (trunc_imm i32:$imm))>;</span><span style="font-size:10.0pt;font-family:Monospace"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">===== Instruction selection ends:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Selected selection DAG: BB#0 '_start:entry'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">SelectionDAG has 42 nodes:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">              t44: i32 = MOVSUTO_A_iSLo TargetConstant:i32<1082130432><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">                t46: i32 = MOVSUTO_A_iSLo TargetConstant:i32<1077936128><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">                  t48: i32 = MOVSUTO_A_iSLo TargetConstant:i32<1073741824><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">                    <span style="background:yellow;mso-highlight:yellow">t50: i32 = MOVSUTO_A_iSLo TargetConstant:i32<1065353216></span><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">                          </span>
<span lang="FR-BE" style="color:#1F497D">t0: ch = EntryToken<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">                        t3: ch = MOV_SU_iSSs_rspa TargetConstant:i32<64>, t0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">                      t5: ch = MOV_SU_iSSs_rspb TargetConstant:i32<64>, t3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">                    t8: ch = MOV_SU_iSSs_rspsu TargetConstant:i32<8>, t5<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">                  t51: ch = MOV_A_or t50, TargetGlobalAddress:i32<float* @x1> 0, t8<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">                t49: ch = MOV_A_or t48, TargetGlobalAddress:i32<float* @x2> 0, t51<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">              t47: ch = MOV_A_or t46, TargetGlobalAddress:i32<float* @x3> 0, t49<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">            t45: ch = MOV_A_or t44, TargetGlobalAddress:i32<float* @x4> 0, t47<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D">          </span><span style="color:#1F497D">t23: f32,ch = MOV_A_ro TargetGlobalAddress:i32<float* @x1> 0, t45<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">        t24: f32,ch = MOV_A_ro TargetGlobalAddress:i32<float* @x2> 0, t23:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">      t25: f32,ch = MOV_A_ro TargetGlobalAddress:i32<float* @x3> 0, t24:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">    t26: f32,ch = MOV_A_ro TargetGlobalAddress:i32<float* @x4> 0, t25:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t29: ch,glue = CALLSEQ_START TargetConstant:i16<4>, t26:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> t31: ch,glue = COPY_TO_CALLEE_A_FROM_GLOBAL TargetGlobalAddress:i32<float* @x1> 0, TargetFrameIndex:i16<0>, t29, t29:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t33: ch,glue = COPY_TO_CALLEE_A_FROM_GLOBAL TargetGlobalAddress:i32<float* @x2> 0, TargetFrameIndex:i16<1>, t31, t31:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t35: ch,glue = COPY_TO_CALLEE_A_FROM_GLOBAL TargetGlobalAddress:i32<float* @x3> 0, TargetFrameIndex:i16<2>, t33, t33:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t37: ch,glue = COPY_TO_CALLEE_A_FROM_GLOBAL TargetGlobalAddress:i32<float* @x4> 0, TargetFrameIndex:i16<3>, t35, t35:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t39: ch,glue = CALLSEQ TargetGlobalAddress:i16<float (float, float, float, float)* @fdivfaddfmul_a> 0, t37, t37:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  t41: ch,glue = CALLSEQ_END TargetConstant:i16<4>, TargetConstant:i16<0>, t39, t39:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">    t42: f32,ch,glue = COPY_TO_CALLER_A TargetFrameIndex:i16<0>, t41, t41:1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">  </span><span lang="FR-BE" style="color:#1F497D">t43: ch = RET_FLAG t42:1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-BE" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<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""> llvm-dev [mailto:llvm-dev-bounces@lists.llvm.org]
<b>On Behalf Of </b>Dominique Torette via llvm-dev<br>
<b>Sent:</b> vendredi 4 mai 2018 12:43<br>
<b>To:</b> llvm-dev@lists.llvm.org<br>
<b>Subject:</b> [llvm-dev] How to constraint instructions reordering from patterns?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a kind of scope mechanism in the instruction lowering pattern language in order to control where instructions are inserted or how they are later reordered during the SelectionDiag linearization?<o:p></o:p></p>
<p class="MsoNormal">I know the glue chain that stick instructions together. But such mechanism in not provided in instruction lowering pattern.
<o:p></o:p></p>
<p class="MsoNormal">I’m facing many situations where some patterns are lowered into valid sequences of consecutive SDNodes/Instructions.<o:p></o:p></p>
<p class="MsoNormal">Such sequences have no glue, so later during Instruction Scheduling/SelectionDiag linearization the instructions are moved out of valid context.<o:p></o:p></p>
<p class="MsoNormal">Is there some Instruction flags or others features that could delimit the reordering could cross some limit?<span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">TIA,        Dominique Torette<span lang="FR-BE" style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
<br>
<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="536" style="width:402.0pt">
<tbody>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><img width="536" height="49" id="_x0000_i1025" src="http://www.spacebel.be/wp-content/uploads/2018/02/image-sign-sbp30y-1.jpg" alt="http://www.spacebel.be/wp-content/uploads/2018/02/image-sign-sbp30y-1.jpg"></span><span lang="FR-BE" style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border:solid silver 1.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<b><span lang="FR-BE" style="font-size:10.0pt">Dominique Torette</span></b><span lang="FR-BE" style="font-size:10.0pt">
<br>
System Architect<br>
Rue des Chasseurs Ardennais - Liège Science Park - B-4031 Angleur <br>
Tel: +32 (0) 4 361 81 11 - Fax: +32 (0) 4 361 81 20 <br>
</span><span style="font-size:10.0pt"><a href="http://www.spacebel.be/"><span lang="FR-BE">www.spacebel.be</span></a></span><span lang="FR-BE" style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="FR-BE"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
------------------------------------------------------------------------------<br>
<br>
E-MAIL DISCLAIMER<br>
<br>
The present message may contain confidential and/or legally privileged information. If you are not the intended addressee and in case of a transmission error, please notify the sender immediately and destroy this E-mail. Disclosure, reproduction or distribution
 of this document and its possible attachments is strictly forbidden.<br>
<br>
SPACEBEL denies all liability for incomplete, improper, inaccurate, intercepted, (partly) destroyed, lost and/or belated transmission of the current information given that unencrypted electronic transmission cannot currently be guaranteed to be secure or error
 free.<br>
Upon request or in conformity with formal, contractual agreements, an originally signed hard copy will be sent to you to confirm the information contained in this E-mail.<br>
<br>
SPACEBEL denies all liability where E-mail is used for private use.<br>
<br>
SPACEBEL cannot be held responsible for possible viruses that might corrupt this message and/or your computer system.<br>
-------------------------------------------------------------------------------<o:p></o:p></span></p>
</div>
<br clear="both">
 ------------------------------------------------------------------------------<BR>
<BR>
E-MAIL DISCLAIMER<BR>
<BR>
The present message may contain confidential and/or legally privileged information. If you are not the intended addressee and in case of a transmission error, please notify the sender immediately and destroy this E-mail. Disclosure, reproduction or distribution of this document and its possible attachments is strictly forbidden.<BR>
<BR>
SPACEBEL denies all liability for incomplete, improper, inaccurate, intercepted, (partly) destroyed, lost and/or belated transmission of the current information given that unencrypted electronic transmission cannot currently be guaranteed to be secure or error free.<BR>
Upon request or in conformity with formal, contractual agreements, an originally signed hard copy will be sent to you to confirm the information contained in this E-mail.<BR>
<BR>
SPACEBEL denies all liability where E-mail is used for private use.<BR>
<BR>
SPACEBEL cannot be held responsible for possible viruses that might corrupt this message and/or your computer system.<BR>
 -------------------------------------------------------------------------------<BR>
</body>
</html>