[LLVMbugs] [Bug 57] New: [inliner] Inlining invoke with PHI in unwind target is broken

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Sun Oct 26 21:15:07 PST 2003


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

           Summary: [inliner] Inlining invoke with PHI in unwind target is
                    broken
           Product: libraries
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interprocedural Optimizations
        AssignedTo: sabre at nondot.org
        ReportedBy: sabre at nondot.org


The inliner is breaking inlining invoke instructions where there is a PHI node
in the exception destination, and the inlined function contains an unwind
instruction.

Here is a testcase, which is Inline/2003-10-26-InlineInvokeExceptionDestPhi.ll

; RUN: llvm-as < %s | opt -inline -disable-output

implementation

linkonce void %foo() {
  unwind
}

int %test() {
BB1:
        invoke void %foo() to label %Cont except label %Cont
Cont:
        %A = phi int [ 0, %BB1], [0, %BB1]
        ret int %A
}



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