[LLVMbugs] [Bug 3076] New: LLVM doesn't fold global initializers

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Nov 15 23:52:51 PST 2008


           Summary: LLVM doesn't fold global initializers
           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: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Running opt -std-compile-opts on this doesn't fold the global initializer:

target datalayout =
target triple = "x86_64-unknown-linux-gnu"
@a = global i32 trunc (i64 sdiv (i64 ptrtoint (i32* inttoptr (i32 100 to i32*)
to i64), i64 4) to i32), align 4             ; <i32*> [#uses=0]

This is with LLVM svn, from a few days ago.

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