<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 - InstCombine: test/Transforms/InstCombine/call-guard.ll looks different with debug info present"
   href="https://bugs.llvm.org/show_bug.cgi?id=37714">37714</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>InstCombine: test/Transforms/InstCombine/call-guard.ll looks different with debug info present
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>All
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>vsk@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Running `opt -O1` on call-guard.ll produces different output with/without debug
info present. To reproduce the issue, do:

# Baseline
$ $OPT -O1 test/Transforms/InstCombine/call-guard.ll -S -o -

# With debug info
$ $OPT -O1 test/Transforms/InstCombine/call-guard.ll -o - -debugify-each
-debugify-quiet | $OPT -strip -S

Comparing: -O1 test/Transforms/InstCombine/call-guard.ll
  Baseline: /var/folders/j8/t4w0bp8j6x1g6fpghkcb4sjm0000gp/T/tmp.RGoONn6d
  With DI : /var/folders/j8/t4w0bp8j6x1g6fpghkcb4sjm0000gp/T/tmp.9KJlc8DB
20a21
<span class="quote">>   call void (i1, ...) @llvm.experimental.guard(i1 %4, i32 123) [ "deopt"() ]</span >
23,24c24
<   %7 = and i1 %6, %4
<   call void (i1, ...) @llvm.experimental.guard(i1 %7, i32 123) [ "deopt"() ]
---
<span class="quote">>   call void (i1, ...) @llvm.experimental.guard(i1 %6, i32 789) [ "deopt"() ]</span >
38,39c38,40
<   %3 = load i32, i32* %1, align 4
<   %4 = and i32 %3, %0
---
<span class="quote">>   %3 = icmp slt i32 %0, 0
>   call void (i1, ...) @llvm.experimental.guard(i1 %3, i32 123) [ "deopt"() ]
>   %4 = load i32, i32* %1, align 4</span >
41c42
<   call void (i1, ...) @llvm.experimental.guard(i1 %5, i32 123) [ "deopt"() ]
---
<span class="quote">>   call void (i1, ...) @llvm.experimental.guard(i1 %5, i32 456) [ "deopt"() ]</span >
:: Found a test case ^</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>