<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CoroFrame inserts spills non-determinstically"
   href="https://bugs.llvm.org/show_bug.cgi?id=32569">32569</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>CoroFrame inserts spills non-determinstically
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Transformation Utilities
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rnk@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The easy way to observe this is to extract the command from
test/Transforms/Coroutines/coro-spill-after-phi.ll and run it a few times with
-debug-only coro-frame until you observe the different ordering:

$ "C:/src/llvm-project/build/./bin\opt.EXE" "-coro-split" "-S" <
'C:\src\llvm-project\llvm\test\Transforms\Coroutines\coro-spill-after-phi.ll'
-debug-only coro-frame |& grep -A4 Spills
------------- Spills--------------
  %phi2 = phi i32 [ %.begin3, %begin.from.entry ], [ %.begin1, %begin.from.alt
]
   user:   %2 = call i32 @print(i32 %phi2)
  %phi1 = phi i32 [ %.begin2, %begin.from.entry ], [ %.begin, %begin.from.alt ]
   user:   %1 = call i32 @print(i32 %phi1)

$ "C:/src/llvm-project/build/./bin\opt.EXE" "-coro-split" "-S" <
'C:\src\llvm-project\llvm\test\Transforms\Coroutines\coro-spill-after-phi.ll'
-debug-only coro-frame |& grep -A4 Spills
------------- Spills--------------
  %phi1 = phi i32 [ %.begin2, %begin.from.entry ], [ %.begin, %begin.from.alt ]
   user:   %1 = call i32 @print(i32 %phi1)
  %phi2 = phi i32 [ %.begin3, %begin.from.entry ], [ %.begin1, %begin.from.alt
]
   user:   %2 = call i32 @print(i32 %phi2)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>