[LLVMbugs] [Bug 1616] New: large array initializers extremely slow

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Aug 20 12:14:39 PDT 2007


           Summary: large array initializers extremely slow
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: tomas.l.olsen at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=1087)
 --> (http://llvm.org/bugs/attachment.cgi?id=1087)
basically just a [float x 32768] initialized to NaN

Currently using large array initializer in LLVM slows down all the tools using
the .bc tremendously. I have attached a .bc file that takes ~40sec to process.

See the original mailinglist thread for more information:

Ideally the solution should introduce a way to create a constant array
initializer where each element is the same value without having to allocate an
array to hold numElements of that same value.

Right now you have to basically do: std::vector<Constant*>
inits(arr->getNumElements(), the_initializer); This is obviously wasteful if
the array has, say 4M elements.

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