[LLVMbugs] [Bug 9931] New: Assertion `L->isLCSSAForm(*DT)' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 16 18:12:41 PDT 2011


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

           Summary: Assertion `L->isLCSSAForm(*DT)' failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            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


[regehr at gamow tmp023]$ clang -c -O3 small.c -w
clang: LCSSA.cpp:160: virtual bool<unnamed>::LCSSA::runOnLoop(llvm::Loop*,
llvm::LPPassManager&): Assertion `L->isLCSSAForm(*DT)' failed.
0  clang           0x00000000018f2aef
1  clang           0x00000000018f4d62
2  libpthread.so.0 0x00007ffff7bcf8f0
3  libc.so.6       0x00007ffff6ebea75 gsignal + 53
4  libc.so.6       0x00007ffff6ec25c0 abort + 384
5  libc.so.6       0x00007ffff6eb7941 __assert_fail + 241
6  clang           0x000000000169d7a3
7  clang           0x0000000001714f24
llvm::LPPassManager::runOnFunction(llvm::Function&) + 1252
8  clang           0x000000000183f30b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 587
9  clang           0x00000000016d4c6d
10 clang           0x000000000183ee07
llvm::MPPassManager::runOnModule(llvm::Module&) + 503
11 clang           0x000000000183ef9b llvm::PassManagerImpl::run(llvm::Module&)
+ 187
12 clang           0x00000000007c8f38
13 clang           0x00000000007c9bbd
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 189
14 clang           0x00000000007c65ab
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 251
15 clang           0x00000000008f7cad clang::ParseAST(clang::Sema&, bool) + 413
16 clang           0x00000000007c58f4 clang::CodeGenAction::ExecuteAction() +
68
17 clang           0x00000000006b1873
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371
18 clang           0x0000000000688f14
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1268
19 clang           0x000000000067fdcb cc1_main(char const**, char const**, char
const*, void*) + 683
20 clang           0x0000000000687d67 main + 6295
21 libc.so.6       0x00007ffff6ea9c4d __libc_start_main + 253
22 clang           0x000000000067e299
Stack dump:
0.    Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r131444-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.1 -momit-leaf-frame-pointer -coverage-file small.o -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r131444-install/bin/../lib/clang/3.0
-O3 -w -ferror-limit 19 -fmessage-length 83 -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_16'
5.    Running pass 'Loop-Closed SSA Form Pass' on basic block
'%for.cond2.preheader.i.us'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)
[regehr at gamow tmp023]$ clang -v
clang version 3.0 (trunk 131444)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at gamow tmp023]$ cat small.c
static int
safe_26 (int si1, int si2)
{
  return si2 == 0 || si1 == 1 && si2 == 1 ? 1 : si1 / si2;
}

struct S0
{
  short f0;
  short f1;
};
int g_3[] = {
};

struct S0 g_191 = {
};

int g_471[] = {
};

int *func_20 (int, unsigned long long);
char
func_16 (unsigned short p_17, unsigned long long p_18,
     unsigned long long p_19)
{
  func_20 (g_3[1], 0);
  return 0;
}

int *
func_20 (int p_21, unsigned long long p_22)
{
  long l_446[] = {
    1, 0,
  };
  for (; g_191.f1; g_191.f1 -= 1)
    for (g_191.f0 = 0; g_191.f0 <= 4; g_191.f0 += 1)
      {
    int *l_470 = &g_471[0];
    *l_470 ^= safe_26 (l_446[0] | l_446[g_191.f0], p_21);
      }
  return 0;
}

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