First Last Prev Next    No search results available
Details
: [llvmgcc] C front-end does not emit 'zeroinitializer' whe...
Bug#: 205
: tools
: llvm-gcc
Status: RESOLVED
Resolution: FIXED
: All
: All
: 1.0
: P2
: normal
: 1.2

:
: quality-of-implementation
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Chris Lattner <sabre@nondot.org>
Assigned To: Chris Lattner <sabre@nondot.org>

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2004-01-11 18:04
This is strictly a quality-of-implementation bug, but it does slow down the
C/C++ compiler needlessly.

In particular, the C front-end emits a .ll file containing an explicit list of
all of the zeros in cases like this:

---
int test[10000];
---

Instead, it would make the C front-end more efficient and the gccas tool parse
the result faster if it just emitted the zeroinitializer token.

-Chris
------- Comment #1 From Chris Lattner 2004-02-14 20:21:06 -------
Fixed.  Testcase here:
Regression/CFrontend/2004-02-14-ZeroInitializer.c.tr

Patch here:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040209/011695.html

-Chris
------- Comment #2 From Chris Lattner 2004-02-14 20:27:45 -------
Here's another patch that helps:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040209/011697.html

It is worth noting that fixing this bug allows us to reduce the size of
129.compress/harness.ll from 391M to 137K.  This puts a LOT less pressure on the
.ll file parser. :)

-Chris

First Last Prev Next    No search results available