<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 - Broken logic to get operand for target of call MI in constructCallSiteEntryDIEs()"
   href="https://bugs.llvm.org/show_bug.cgi?id=44004">44004</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Broken logic to get operand for target of call MI in constructCallSiteEntryDIEs()
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>llc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>thomas.preudhomme@celest.fr
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>constructCallSiteEntryDIEs() tries to gather some information about the target
of a call by looking at the operand 0 of a call MachineInstr with the
assumption that it corresponds to the operand holding the target of the call.
However this is at least not the case on Arm where the target is encoded as
operand 2 of the tBL MachineInstr, with the first 2 operands used to encode the
predicate and the implicit use of CPSR.

I looked at making a patch but could not find how to find the operand holding
the target of the call in a target independent way. Method getBranchDestBlock()
of TargetInstrInfo seemed promising to get some of the information but is not
implement on at least Arm and Hexagon targets.</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>