[LLVMbugs] [Bug 612] NEW: [lowerinvoke] invalid code created when basic blocks have single entry phis

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Aug 3 11:32:55 PDT 2005


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=612

           Summary: [lowerinvoke] invalid code created when basic blocks
                    have single entry phis
           Product: libraries
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: sabre at nondot.org
        ReportedBy: sabre at nondot.org


Eric van Riet Paap reported a codegen crash on something that reduces to this testcase:

---
declare void %ll_listnext__listiterPtr()

void %WorkTask.fn() {
block0:
        invoke void %ll_listnext__listiterPtr( )
                        to label %block9 unwind label %block8_exception_handling

block8_exception_handling:              ; preds = %block0
        ret void

block9:         ; preds = %block0
        %w_2690 = phi { int, int }* [ null, %block0 ]           ; <{ int, int }*> [#uses=1]
        %tmp.129 = getelementptr { int, int }* %w_2690, int 0, uint 1           ; <int*> [#uses=1]
        %v2769 = load int* %tmp.129             ; <int> [#uses=0]
        ret void
}
---

The single-entry phi node on a non-critical edge causes the problem.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list