[LLVMbugs] [Bug 17250] New: opt fails with blockaddress of entry block
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Sep 15 10:56:31 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17250
Bug ID: 17250
Summary: opt fails with blockaddress of entry block
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: marceloabsousa at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11203
--> http://llvm.org/bugs/attachment.cgi?id=11203&action=edit
Bytecode file
With:
LLVM (http://llvm.org/):
LLVM version 3.4svn
DEBUG build.
Built Sep 14 2013 (21:22:42).
Default target: x86_64-unknown-linux-gnu
Host CPU: corei7-avx
clang version 3.4 (trunk 190758)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Running the optimizer with instnamer and lowerswitch violates the blockaddress
of entry block assertion. This file is part of the Linux kernel
(lib/locking-selftest.c). I'm able to run llvm-dis on it for inspection. I
suspect the problem is in the IR generation. Here's the failure log file. The
.bc goes in attach.
opt -instnamer < locking-selftest.c.bc > locking-selftest.o.bc
blockaddress may not be used with the entry block!
label %bb
Broken module found, compilation aborted!
/home/msousa/llvm/build/bin/opt -instnamer -lowerswitch < lib/show_mem.c.bc >
lib/show_mem.o.bc
/home/msousa/llvm/build/bin/opt -instnamer -lowerswitch < lib/proportions.c.bc
> lib/proportions.o.bc
0 opt 0x00000000018a5a15 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 opt 0x00000000018a5c9c
/home/msousa/llvm/build/bin/opt -instnamer -lowerswitch < lib/rwsem.c.bc >
lib/rwsem.o.bc
2 opt 0x00000000018a56e0
3 libpthread.so.0 0x00002aaaab311030
4 libc.so.6 0x00002aaaabf06475 gsignal + 53
5 libc.so.6 0x00002aaaabf096f0 abort + 384
6 opt 0x000000000179be27
7 opt 0x000000000179bb0b
8 opt 0x000000000177d7cd
llvm::FPPassManager::runOnFunction(llvm::Function&) + 385
9 opt 0x000000000177d9be
llvm::FPPassManager::runOnModule(llvm::Module&) + 84
10 opt 0x000000000177dd1b
llvm::MPPassManager::runOnModule(llvm::Module&) + 559
11 opt 0x000000000177e269 llvm::PassManagerImpl::run(llvm::Module&)
+ 249
12 opt 0x000000000177e47b llvm::PassManager::run(llvm::Module&) +
39
13 opt 0x000000000094a50f main + 5564
14 libc.so.6 0x00002aaaabef2ead __libc_start_main + 253
15 opt 0x000000000093cd99
Stack dump:
0. Program arguments: opt -instnamer -lowerswitch
1. Running pass 'Function Pass Manager' on module '<stdin>'.
2. Running pass 'Module Verifier' on function
'@ww_test_object_lock_unbalanced'
Aborted
make: *** [lib/locking-selftest.o.bc] Error 134
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130915/f52b3a0d/attachment.html>
More information about the llvm-bugs
mailing list