[llvm-commits] [llvm] r134216 - /llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp

Joerg Sonnenberger joerg at britannica.bec.de
Fri Jul 1 14:27:52 PDT 2011


On Fri, Jul 01, 2011 at 12:16:55AM -0000, Rafael Espindola wrote:
> Author: rafael
> Date: Thu Jun 30 19:16:54 2011
> New Revision: 134216
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=134216&view=rev
> Log:
> Add 134199 back, but disable the optimization when the second copy is a kill.
> 
> Modified:
>     llvm/trunk/lib/CodeGen/RegisterCoalescer.cpp

Not sure if it this change, but I hit the attached assertion during the
llvm rebuild in the NetBSD tree.

Joerg
-------------- next part --------------
clang: /home/joerg/work/LLVM/llvm/include/llvm/ADT/IntervalMap.h:606: unsigned int llvm::IntervalMapImpl::LeafNode< <template-parameter-1-1>, <template-parameter-1-2>, <anonymous>, <template-parameter-1-4> >::insertFrom(unsigned int&, unsigned int, KeyT, KeyT, ValT) [with KeyT = llvm::SlotIndex, ValT = unsigned int, unsigned int N = 9u, Traits = llvm::IntervalMapInfo<llvm::SlotIndex>]: Assertion `!Traits::stopLess(b, a) && "Invalid interval"' failed.
0  clang           0x00000000028cf4bd
1  clang           0x00000000028cf2b9
2  libpthread.so.0 0x00007f590ca12c60
3  libc.so.6       0x00007f590bcfdd05 gsignal + 53
4  libc.so.6       0x00007f590bd01ab6 abort + 390
5  libc.so.6       0x00007f590bcf67c5 __assert_fail + 245
6  clang           0x0000000002438bfa llvm::IntervalMapImpl::LeafNode<llvm::SlotIndex, unsigned int, 9u, llvm::IntervalMapInfo<llvm::SlotIndex> >::insertFrom(unsigned int&, unsigned int, llvm::SlotIndex, llvm::SlotIndex, unsigned int) + 140
7  clang           0x00000000024372a4 llvm::IntervalMap<llvm::SlotIndex, unsigned int, 9u, llvm::IntervalMapInfo<llvm::SlotIndex> >::insert(llvm::SlotIndex, llvm::SlotIndex, unsigned int) + 306
8  clang           0x00000000024333cc llvm::SplitEditor::useIntv(llvm::SlotIndex, llvm::SlotIndex) + 220
9  clang           0x00000000023e4469
10 clang           0x00000000023e50b0
11 clang           0x00000000023e64c7
12 clang           0x00000000023e68aa
13 clang           0x00000000024e208e llvm::RegAllocBase::allocatePhysRegs() + 528
14 clang           0x00000000023e6db7
15 clang           0x0000000002399aad llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
16 clang           0x00000000027fb745 llvm::FPPassManager::runOnFunction(llvm::Function&) + 445
17 clang           0x00000000027fb984 llvm::FPPassManager::runOnModule(llvm::Module&) + 102
18 clang           0x00000000027fbcb4 llvm::MPPassManager::runOnModule(llvm::Module&) + 456
19 clang           0x00000000027fc1ae llvm::PassManagerImpl::run(llvm::Module&) + 130
20 clang           0x00000000027fc5bb llvm::PassManager::run(llvm::Module&) + 39
21 clang           0x000000000133117b
22 clang           0x0000000001331231 clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&, clang::TargetOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 123
23 clang           0x000000000132e66e clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 460
24 clang           0x000000000149e258 clang::ParseAST(clang::Sema&, bool) + 673
25 clang           0x00000000011f168f clang::ASTFrontendAction::ExecuteAction() + 263
26 clang           0x000000000132dadc clang::CodeGenAction::ExecuteAction() + 936
27 clang           0x00000000011f12eb clang::FrontendAction::Execute() + 325
28 clang           0x00000000011d776b clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 741
29 clang           0x000000000117d8b4 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 909
30 clang           0x000000000116ec15 cc1_main(char const**, char const**, char const*, void*) + 973
31 clang           0x0000000001178f60 main + 496
32 libc.so.6       0x00007f590bce8eff __libc_start_main + 255
33 clang           0x000000000116e2c9
Stack dump:
0.	Program arguments: clang -cc1 -triple x86_64--netbsd -emit-obj -disable-free -main-file-name ClangDiagnosticsEmitter.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.21.0.20110327 -momit-leaf-frame-pointer -coverage-file ClangDiagnosticsEmitter.o -resource-dir /home/joerg/work/NetBSD/obj/cvs/tools/bin/../lib/clang/2.9 -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I . -I /home/joerg/work/NetBSD/cvs/src/external/bsd/llvm/bin/tblgen/../../dist/llvm/include -I /home/joerg/work/NetBSD/cvs/src/external/bsd/llvm/bin/tblgen/../../dist/clang/include -I /home/joerg/work/NetBSD/obj/cvs/amd64/external/bsd/llvm/include -I /home/joerg/work/NetBSD/cvs/src/external/bsd/llvm/bin/tblgen/../../config -isysroot /home/joerg/work/NetBSD/obj/cvs/amd64/destdir.amd64 -O2 -Werror -fdeprecated-macro -ferror-limit 19 -fmessage-length 0 -fgnu-runtime -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o ClangDiagnosticsEmitter.o -x c++ /home/joerg/work/NetBSD/cvs/src/external/bsd/llvm/bin/tblgen/../../dist/llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp 
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module '/home/joerg/work/NetBSD/cvs/src/external/bsd/llvm/bin/tblgen/../../dist/llvm/utils/TableGen/ClangDiagnosticsEmitter.cpp'.
4.	Running pass 'Greedy Register Allocator' on function '@_ZN4llvm26ClangDiagsIndexNameEmitter3runERNS_11raw_ostreamE'


More information about the llvm-commits mailing list