[LLVMbugs] [Bug 2808] New: ice: attempt to spill already spilled interval!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Sep 18 21:56:55 PDT 2008


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

           Summary: ice: attempt to spill already spilled interval!
           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: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


Seen using r56321 on Ubuntu Hardy on ia32.

regehr at john-home:~/volatile/tmp41$ llvm-gcc -O2 small.c
small.c: In function ‘func_4’:
small.c:19: warning: passing argument 2 of ‘rshift_u_s’ makes integer from
pointer without a cast
cc1: LiveIntervalAnalysis.cpp:1803: std::vector<llvm::LiveInterval*,
std::allocator<llvm::LiveInterval*> >
llvm::LiveIntervals::addIntervalsForSpills(const llvm::LiveInterval&, const
llvm::MachineLoopInfo*, llvm::VirtRegMap&, float&): Assertion `li.weight !=
(__builtin_huge_valf()) && "attempt to spill already spilled interval!"'
failed.
small.c: At top level:
small.c:20: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.

regehr at john-home:~/volatile/tmp41$ cat small.c

int rshift_u_s (int left, int right)
{
  if (right < 0 || right >= 4)
    return left;
  return left >> right;
}

unsigned int mod_rhs (int rhs)
{
  return rhs;
}

int g_3;

int func_4 (void)
{
  char l_2 = 1 - g_3;
  (g_3 % mod_rhs (rshift_u_s (l_2, func_4))) && lshift_u_s (1);
}


-- 
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