[LLVMbugs] [Bug 2340] New: SimplifyCFG doesn' t proerly clean up trivially dead instructions

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat May 17 15:03:20 PDT 2008


           Summary: SimplifyCFG doesn't proerly clean up trivially dead
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=1649)
 --> (http://llvm.org/bugs/attachment.cgi?id=1649)

To reproduce: run "opt -simplifycfg" on the attached testcase. Code after

define i32 @x(i32 %x) {
        %call = call i32 (...)* @foo( )         ; <i32> [#uses=0]
        %cond = icmp eq i32 %x, 9               ; <i1> [#uses=0]
        %call9 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
        ret i32 0

The icmp is unused; SimplifyCFG should have eliminated it when it eliminated
the branch that used it.

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