<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:florian_hahn@apple.com" title="Florian Hahn <florian_hahn@apple.com>"> <span class="fn">Florian Hahn</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - PromoteMemToReg crashes"
   href="https://bugs.llvm.org/show_bug.cgi?id=16867">bug 16867</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>florian_hahn@apple.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - PromoteMemToReg crashes"
   href="https://bugs.llvm.org/show_bug.cgi?id=16867#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - PromoteMemToReg crashes"
   href="https://bugs.llvm.org/show_bug.cgi?id=16867">bug 16867</a>
              from <span class="vcard"><a class="email" href="mailto:florian_hahn@apple.com" title="Florian Hahn <florian_hahn@apple.com>"> <span class="fn">Florian Hahn</span></a>
</span></b>
        <pre>Looks fixed, test cases do not crash anymore, and the second  test case
produces the code below with current master.

define void @test2(i1 %yt) {
bb:
  %tmp = alloca i8*, align 4
  br i1 %yt, label %bb51, label %bb3

bb51:                                             ; preds = %bb
  %tmp52 = bitcast i8** %tmp to %type*
  %tmp53 = bitcast %type* %tmp52 to i8**
  %tmp54 = load i8*, i8** %tmp53, align 4
  ret void

bb3:                                              ; preds = %bb
  %x = load i8*, i8** %tmp
  ret void
}</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>