[LLVMbugs] [Bug 8162] New: Assertion `!isConstantRange() && "Constant and ConstantRange cannot be merged."' failed.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Sep 15 20:56:00 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8162
Summary: Assertion `!isConstantRange() && "Constant and
ConstantRange cannot be merged."' 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 gamow tmp428]$ clang -v
clang version 2.9 (trunk 114038)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at gamow tmp428]$ clang -O3 small.c -w
clang: LazyValueInfo.cpp:228:
bool<unnamed>::LVILatticeVal::mergeIn(const<unnamed>::LVILatticeVal&):
Assertion `!isConstantRange() && "Constant and ConstantRange cannot be
merged."' failed.
0 clang 0x000000000169953f
1 clang 0x000000000169b7b2
2 libpthread.so.0 0x00007f8c0ca19190
3 libc.so.6 0x00007f8c0bd1e4b5 gsignal + 53
4 libc.so.6 0x00007f8c0bd21f50 abort + 384
5 libc.so.6 0x00007f8c0bd17481 __assert_fail + 241
6 clang 0x00000000014ca3f5
7 clang 0x00000000014cca39
8 clang 0x00000000014cd5a7
9 clang 0x00000000014cdcb1
10 clang 0x00000000014ce374
llvm::LazyValueInfo::getConstantOnEdge(llvm::Value*, llvm::BasicBlock*,
llvm::BasicBlock*) + 68
11 clang 0x000000000138fd02
12 clang 0x00000000015de4ad
llvm::FPPassManager::runOnFunction(llvm::Function&) + 557
13 clang 0x00000000014a4e2b
14 clang 0x00000000014a5585
15 clang 0x00000000015de044
llvm::MPPassManager::runOnModule(llvm::Module&) + 500
16 clang 0x00000000015de1b7 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
17 clang 0x00000000007cbbb7
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 1623
18 clang 0x00000000007c7cab
19 clang 0x00000000008e91a3 clang::ParseAST(clang::Sema&, bool) + 291
20 clang 0x00000000007c8c94 clang::CodeGenAction::ExecuteAction() +
68
21 clang 0x00000000006d5e9d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 349
22 clang 0x00000000006b3bfc
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1292
23 clang 0x00000000006ab968 cc1_main(char const**, char const**, char
const*, void*) + 472
24 clang 0x00000000006b27f5 main + 4117
25 libc.so.6 0x00007f8c0bd09abd __libc_start_main + 253
26 clang 0x00000000006aa2e9
Stack dump:
0. Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r114038-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name small.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.20 -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r114038-install/lib/clang/2.9
-O3 -w -ferror-limit 19 -fmessage-length 89 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-C2ochI.s -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 'Value Propagation' on function '@int328'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
[regehr at gamow tmp428]$ cat small.c
typedef short int int16_t;
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
struct S2
{
};
int16_t g_106;
struct S2 g_128 = {
1L, 0x5E58L
};
int328 (uint8_t p_79, uint32_t p_80, struct S3 *p_81, int16_t p_82)
{
int i, j, k;
for (i = 0;; 1)
{
int16_t l_109 = 0;
int16_t *l_130 = &g_106;
lbl_133:if (0)
break;
if (safe (0))
{
struct S2 *l_127 = &g_128;
int16_t *l_129 = &l_109;
*l_129 = l_127;
if (p_82)
lbl_134:if (l_109)
goto lbl_133;
else
for (i; i < 1; i++)
{
}
}
else
*l_130 &= (p_79, l_109);
}
}
--
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