[LLVMbugs] [Bug 7558] New: msp430: llc runs away on simple program with long (32-bit) arithmetic

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 2 13:44:34 PDT 2010


           Summary: msp430: llc runs away on simple program with long
                    (32-bit) arithmetic
           Product: new-bugs
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ransford at cs.umass.edu
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=5158)
 --> (http://llvm.org/bugs/attachment.cgi?id=5158)
bitcode program that makes llc run away

This program makes llc (tested against ToT) eat memory like mad.  My system has
limited resources, so I have no choice but to kill llc after its rsize tops
4GB.  I haven't seen it finish.  I've run llc under gdb and it seems to be
getting stuck in llvm::SUnit::ComputeHeight.

int main (void) {
    unsigned long S[2] = {1, 2};
    unsigned long i = 0;
    unsigned long j = 0;
    unsigned int ofs = 0;

    i += S[ofs++];
    j += S[ofs];
    return 0;

I've compiled this bitcode file with clang from the llvm-msp430 project
(https://www.fooe.net/trac/llvm-msp430), but since this seems to be a codegen
bug, I'm submitting only the bitcode.  I'd be happy to provide more on demand.

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