[llvm-bugs] [Bug 38502] New: Infinite recursion in float2int

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 9 07:06:59 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38502

            Bug ID: 38502
           Summary: Infinite recursion in float2int
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: bevin.hansson at ericsson.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20665
  --> https://bugs.llvm.org/attachment.cgi?id=20665&action=edit
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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180809/d60bbed4/attachment.html>


More information about the llvm-bugs mailing list