[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


http://llvm.org/bugs/show_bug.cgi?id=3076

           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 =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
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