<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 - Infinite recursion in float2int"
   href="https://bugs.llvm.org/show_bug.cgi?id=38502">38502</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Infinite recursion in float2int
          </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>Linux
          </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>bevin.hansson@ericsson.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20665" name="attach_20665" title="llvm ir reproducer">attachment 20665</a> <a href="attachment.cgi?id=20665&action=edit" title="llvm ir reproducer">[details]</a></span>
llvm ir reproducer

The following reproducer causes float2int to infinitely recurse in `convert`,
likely due to an unreachable block.

opt -float2int -o /dev/null x.ll

...
#251 0x0000000002dce068 llvm::Float2IntPass::convert(llvm::Instruction*,
llvm::Type*) /home/ebevhan/work/llvm/lib/Transforms/Scalar/Float2Int.cpp:428:0
#252 0x0000000002dce068 llvm::Float2IntPass::convert(llvm::Instruction*,
llvm::Type*) /home/ebevhan/work/llvm/lib/Transforms/Scalar/Float2Int.cpp:428:0
#253 0x0000000002dce068 llvm::Float2IntPass::convert(llvm::Instruction*,
llvm::Type*) /home/ebevhan/work/llvm/lib/Transforms/Scalar/Float2Int.cpp:428:0
#254 0x0000000002dce068 llvm::Float2IntPass::convert(llvm::Instruction*,
llvm::Type*) /home/ebevhan/work/llvm/lib/Transforms/Scalar/Float2Int.cpp:428:0
#255 0x0000000002dce068 llvm::Float2IntPass::convert(llvm::Instruction*,
llvm::Type*) /home/ebevhan/work/llvm/lib/Transforms/Scalar/Float2Int.cpp:428:0
Segmentation fault (core dumped)</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>