[LLVMbugs] [Bug 9523] New: Assertion `OrigPreheader && OrigLatch && "Loop not in canonical form?"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 21 10:28:55 PDT 2011


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: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


$ 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.



More information about the llvm-bugs mailing list