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

           Summary: Assertion `OrigPreheader && OrigLatch && "Loop not in
                    canonical form?"' failed.
           Product: new-bugs
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


$ opt -loop-rotate bugpoint-reduced-simplified.bc -disable-output
opt: llvm/lib/Transforms/Scalar/LoopRotation.cpp:187:
bool<unnamed>::LoopRotate::rotateLoop(llvm::Loop*): Assertion `OrigPreheader &&
OrigLatch && "Loop not in canonical form?"' failed.

Testcase:

define void @f() nounwind {
entry:
  indirectbr i8* undef, [label %"3", label %"5"]

"3":                                              ; preds = %"4", %entry
  br i1 undef, label %"5", label %"4"

"4":                                              ; preds = %"3"
  br label %"3"

"5":                                              ; preds = %"3", %entry
  ret void
}

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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