[LLVMbugs] [Bug 21576] New: Infinite loop in opt -instcombine

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 14 08:49:03 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21576

            Bug ID: 21576
           Summary: Infinite loop in opt -instcombine
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: opt
          Assignee: unassignedbugs at nondot.org
          Reporter: russell_gallop at sn.scee.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat bugpoint-reduced-simplified.ll
define void @autogen_SD2047654124() {
BB:
  %A = alloca <1 x double>
  %L = load <1 x double>* %A
  %B = frem <1 x double> %L, %L
  br label %CF33

CF33:                                             ; preds = %CF33, %BB
  br i1 undef, label %CF33, label %CF34

CF34:                                             ; preds = %CF34, %CF33
  %Tr = fptrunc <1 x double> %B to <1 x float>
  %E13 = extractelement <1 x float> %Tr, i32 0
  br i1 undef, label %CF34, label %CF35

CF35:                                             ; preds = %CF34
  %B29 = fdiv float 0xC08DAF2180000000, %E13
  ret void
}
$ opt -instcombine bugpoint-reduced-simplified.ll -o out.ll

Gets stuck in infinite loop using ever-increasing amounts of memory.

Reproduced with trunk 222002.

-- 
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/20141114/ad174b45/attachment.html>


More information about the llvm-bugs mailing list