<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:aprantl@apple.com" title="Adrian Prantl <aprantl@apple.com>"> <span class="fn">Adrian Prantl</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - DBG_VALUE is accidentally promoted to location for the entire function"
   href="https://llvm.org/bugs/show_bug.cgi?id=26585">bug 26585</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;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - DBG_VALUE is accidentally promoted to location for the entire function"
   href="https://llvm.org/bugs/show_bug.cgi?id=26585#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - DBG_VALUE is accidentally promoted to location for the entire function"
   href="https://llvm.org/bugs/show_bug.cgi?id=26585">bug 26585</a>
              from <span class="vcard"><a class="email" href="mailto:aprantl@apple.com" title="Adrian Prantl <aprantl@apple.com>"> <span class="fn">Adrian Prantl</span></a>
</span></b>
        <pre>Fixed in r262247:

Author: Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>>
Date:   Mon Feb 29 11:53:22 2016 -0800

    Fix PR26585 by improving the promotion of DBG_VALUEs to DW_AT_locations.
    When a variable is described by a single DBG_VALUE instruction we can
    often use a more efficient inline DW_AT_location instead of using a
    location list.

    This commit makes the heuristic that decides when to apply this
    optimization stricter by also verifying that the DBG_VALUE is live at the
    entry of the function (instead of just checking that it is valid until
    the end of the function).

    <rdar://problem/24611008></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>