<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - SelectionDAG instruction selection performs CSE on nodes with debug information"
   href="https://llvm.org/bugs/show_bug.cgi?id=10003">bug 10003</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>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

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

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>WONTFIX
           </td>
           <td>---
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - SelectionDAG instruction selection performs CSE on nodes with debug information"
   href="https://llvm.org/bugs/show_bug.cgi?id=10003#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - SelectionDAG instruction selection performs CSE on nodes with debug information"
   href="https://llvm.org/bugs/show_bug.cgi?id=10003">bug 10003</a>
              from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
        <pre>Similar issue, consider the following code and the .loc directives in the
assembly:

volatile int x;
extern "C" void exit(int);
int main() {
  x += 24;
  x += 2;
  x += 3;
  x += 4;
  exit(24);
}

        addl    $24, "?x@@3HC"(%rip)
        .loc    1 5 5                   # t.cpp:5:5
        addl    $2, "?x@@3HC"(%rip)
        .loc    1 6 5                   # t.cpp:6:5
        addl    $3, "?x@@3HC"(%rip)
        .loc    1 7 5                   # t.cpp:7:5
        addl    $4, "?x@@3HC"(%rip)
        .loc    1 4 5                   # t.cpp:4:5
        movl    $24, %ecx
        .loc    1 8 3                   # t.cpp:8:3
        callq   exit
        .loc    1 9 1                   # t.cpp:9:1
        xorl    %eax, %eax
        addq    $40, %rsp
        retq

We shouldn't step backwards to line 4 between line 7 and 8. I'm pretty sure
this is DAG CSE, but I could be wrong.

I might take a look at this.</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>