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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to