<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Slow register allocation on Yacc-generated code compiled with UBSan"
href="http://llvm.org/bugs/show_bug.cgi?id=21349">21349</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Slow register allocation on Yacc-generated code compiled with UBSan
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Register Allocator
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>glider@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>kcc@google.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=13240" name="attach_13240" title="Source code reproducing the problem">attachment 13240</a> <a href="attachment.cgi?id=13240&action=edit" title="Source code reproducing the problem">[details]</a></span>
Source code reproducing the problem
We've encountered this problem while building Mesa in Chromium.
The following command line:
$ clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free
-mrelocation-model pic -pic-level 2 -relaxed-aliasing -target-cpu x86-64 -v
-O2 -o obj/third_party/mesa/src/chromium_gensrc/mesa/mesa.lex.yy.o -x c
mesa_lex_ubsan.ii
-fsanitize=alignment,array-bounds,bool,enum,float-cast-overflow,float-divide-by-zero,function,integer-divide-by-zero,nonnull-attribute,null,object-size,return,returns-nonnull-attribute,shift,signed-integer-overflow,unreachable,vla-bound,vptr
-ftime-report
hangs indefinitely (at least for more than 20 minutes) somewhere in
llvm::RegAllocBase::allocatePhysRegs():
(gdb) bt
#0 0x0000000000ec845b in
llvm::MachineBlockFrequencyInfo::getBlockFreq(llvm::MachineBasicBlock const*)
const ()
#1 0x00000000010024ce in ?? ()
#2 0x0000000000ffb7b2 in ?? ()
#3 0x0000000000f5e181 in ?? ()
#4 0x0000000000f5cf8a in ?? ()
#5 0x0000000001026309 in llvm::RegAllocBase::allocatePhysRegs() ()
#6 0x0000000000f5cb46 in ?? ()
#7 0x0000000000ee8a0c in
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) ()
#8 0x000000000110f9d3 in llvm::FPPassManager::runOnFunction(llvm::Function&)
()
#9 0x000000000110fc4b in llvm::FPPassManager::runOnModule(llvm::Module&) ()
#10 0x00000000011101b7 in llvm::legacy::PassManagerImpl::run(llvm::Module&) ()
#11 0x00000000017ea38d in clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) ()
#12 0x00000000017e05c4 in ?? ()
#13 0x0000000001d58b03 in clang::ParseAST(clang::Sema&, bool, bool) ()
#14 0x000000000156de6b in clang::FrontendAction::Execute() ()
#15 0x00000000015418cc in
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) ()
#16 0x00000000015ecb3a in
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) ()
#17 0x00000000006ac1db in cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) ()
#18 0x00000000006aadd5 in main ()</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>