[LLVMbugs] [Bug 278] NEW: [llvmgcc] C front-end should only output a given constant string once

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Mar 9 15:08:07 PST 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=278

           Summary: [llvmgcc] C front-end should only output a given
                    constant string once
           Product: tools
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org


Currently the C front-end can emit the same constant string multiple times, if
it is "uttered" multiple times.  Instead of relying on the LLVM constant merging
pass to deal with this, we might as well only GENERATE one of each constant
string if there are dups.  Testcases like this are the most common:

char *X[] = { "foo", "foo", "foo", "bar", "bar", ...};

This is strictly a compiler speedup, it should have no effect on code quality or
correctness.

-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list