<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 1/15/16 9:44 AM, Mohammad Norouzi
      via llvm-dev wrote:<br>
    </div>
    <blockquote
cite="mid:CAFVz=BVPQ11dBj8ERmHqgFsQhpm9W5xkTv2x5DHjN=3JewDS2w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>Hi all,<br>
            <br>
          </div>
          Is it possible to have phi nodes as an operand to an
          instruction?<br>
        </div>
      </div>
    </blockquote>
    <br>
    Yes, you can use a phi node as an operand to an instruction. 
    However, the phi-node must dominate any instruction that uses it as
    an operand.<br>
    <br>
    Regards,<br>
    <br>
    John Criswell<br>
    <br>
    <blockquote
cite="mid:CAFVz=BVPQ11dBj8ERmHqgFsQhpm9W5xkTv2x5DHjN=3JewDS2w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        For example, instead of <br>
        <br>
        <pre><font size="2">%input = phi <ty> [ <val0>, <label0>] [<val1>, <label1>]
%2 = .....
</font></pre>
        <pre><font size="2">%add = add i32 %2, %input</font>

</pre>
        <pre>we have sth like this:
<font size="2">
%add = add i32 %2, %phi <ty> [ <val0>, <label0>] [<val1>, <label1>]</font></pre>
        <pre>
Best,
</pre>
        <pre>Mo
</pre>
        <br>
      </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>
    <br>
    <pre class="moz-signature" cols="72">-- 
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a class="moz-txt-link-freetext" href="http://www.cs.rochester.edu/u/criswell">http://www.cs.rochester.edu/u/criswell</a></pre>
  </body>
</html>