<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 - [debugify] instcombine fail (2) (Instruction with empty DebugLoc in function)"
   href="https://bugs.llvm.org/show_bug.cgi?id=38083">38083</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[debugify] instcombine fail (2) (Instruction with empty DebugLoc in function)
          </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>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>greg.bedwell@sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>anastasis.gramm2@gmail.com, davide@freebsd.org, llvm-bugs@lists.llvm.org, vsk@apple.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>37953
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20533" name="attach_20533" title="ll reproducer">attachment 20533</a> <a href="attachment.cgi?id=20533&action=edit" title="ll reproducer">[details]</a></span>
ll reproducer

$ clang -v
clang version 7.0.0 (trunk 336429) (llvm/trunk 336428)
Target: x86_64-scei-ps4
Thread model: posix
InstalledDir: e:\work\upstream-llvm\build-vs2015-ps4-ninja\bin

$ cat 1.Combine_redundant_instructions.FAIL_with_warnings.cpp
void foo();
void bar() {
  for (int baz = 0; baz < 10; baz++)
    foo();
}

$ clang --target=x86_64-unkown-unknown -O0 -Xclang -disable-O0-optnone
1.Combine_redundant_instructions.FAIL_with_warnings.cpp -S -emit-llvm -o
instcombine-input.ll

$ opt -debugify-each -disable-output -instcombine instcombine-input.ll
ERROR: Instruction with empty DebugLoc in function _Z3barv --  %storemerge =
phi i32 [ 0, %entry ], [ %inc, %for.inc ]
WARNING: Missing line 2
WARNING: Missing line 4
WARNING: Missing line 11
CheckFunctionDebugify [Combine redundant instructions]: FAIL
CheckFunctionDebugify [Module Verifier]: PASS</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [meta] [debugify] fix -check-debugify failures"
   href="https://bugs.llvm.org/show_bug.cgi?id=37953">Bug 37953</a>] [meta] [debugify] fix -check-debugify failures
              </li>
          </ul>
        </div>
        <br>

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

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