[LLVMbugs] [Bug 8955] New: Assertion `DidIt && "Block merge failed??"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 10 20:44:46 PST 2011


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

           Summary: Assertion `DidIt && "Block merge failed??"' failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu


regehr at home:~/volatile/bugs/tmp344$ clang -c -w small.c -O1

clang: LoopRotation.cpp:343:
bool<unnamed>::LoopRotate::rotateLoop(llvm::Loop*): Assertion `DidIt && "Block
merge failed??"' failed.
0  clang 0x09476448
Stack dump:
0.    Program arguments:
/mnt/z/z/compiler-install/llvm-gcc-r123209-install/bin/clang -cc1 -triple
i386-pc-linux-gnu -emit-obj -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -target-linker-version 2.20.51 -resource-dir
/mnt/z/z/compiler-install/llvm-gcc-r123209-install/bin/../lib/clang/2.9 -O1 -w
-ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o small.o -x c small.c 
1.    <eof> parser at end of file
2.    Per-module optimization passes
3.    Running pass 'CallGraph Pass Manager' on module 'small.c'.
4.    Running pass 'Loop Pass Manager' on function '@func_46'
5.    Running pass 'Rotate Loops' on basic block '%lbl_283'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

regehr at home:~/volatile/bugs/tmp344$ clang -v

clang version 2.9 (trunk 123209)
Target: i386-pc-linux-gnu
Thread model: posix

regehr at home:~/volatile/bugs/tmp344$ cat small.c


int g_2;
int *g_37;
int **g = &g_37;
int g_57;
int *g_141 = &g_2;
int *g_143 = &g_57;

int func_64 (int *);

void func_46 (int p_47)
{
  int l_166;
  int *l_261 = &l_166;
  int *l_286;
  l_286 = &l_166;
 lbl_283:
  *g_143 |= 0;
  if (p_47)
    {
      int **l_262 = &l_261;
      if (**l_262)
    {
      for (; g; )
        {
        }
    lbl_281:
      *g = 0;
    }
      if (g_57)    goto lbl_281;
      goto lbl_283;
    }
  else
    {
      int **l_295 = &l_286;
      if (func_64 (*l_295));
    }
}

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