<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] "Missing line" false alarm on PHI node"
   href="https://bugs.llvm.org/show_bug.cgi?id=49959">49959</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Debugify] "Missing line" false alarm on PHI node
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>Transformation Utilities
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>yilong.guo@intel.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>debugify always report "missing line" false alarms on PHI node when PHI node is
untouched by the target pass.

Probably relates to <a href="https://reviews.llvm.org/D75242">https://reviews.llvm.org/D75242</a>

applyDebugifyMetadata adds debug locations on PHI nodes, but
checkDebugifyMetadata unconditionally skips PHI nodes during
missing-line-check.

ll reproducer:
; debugify-ignore-phi.ll
define void @test_phi(i1 %cond) {
0:
  br i1 %cond, label %1, label %2
1:
  br label %2
2:
  %v = phi i32 [ 0, %0 ], [ 1, %1 ]
  ret void
}

opt -disable-output -debugify-each -passes=helloworld debugify-ignore-phi.ll
<span class="quote">>> test_phi
>> WARNING: Missing line 3
>> CheckFunctionDebugify [HelloWorldPass]: PASS</span >

I think we should skip PHI nodes for applying debug locations as well.</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>