<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - SelectionDAGISel::CodeGenAndEmitDAG takes 3 minutes to compile 11 lines of C++,"
href="https://bugs.llvm.org/show_bug.cgi?id=33494">33494</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SelectionDAGISel::CodeGenAndEmitDAG takes 3 minutes to compile 11 lines of C++,
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kcc@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>r305575, x86_64 linux
void foo(int *a) {
while (a[56]){
a[0]=(a[0]+(a[0]+(a[0]+(a[0]>=1))));
while (a[0]){
a[0]=(a[0]+(1048576));
a[8]=(((((((((((((a[0]+a[0])*(((((a[0]+a[0])*a[0])*a[0])*a[0])*a[0]))*a[0])*(((((a[0]+a[0])*a[0])*a[0])*a[0])*a[0]))*a[0])*a[0])*a[0])*a[0])*a[0])*a[0])*a[0])+((a[0]+1)+(0)))+a[8]);
a[0]=(a[0]+(30));
}
}
}
clang -cc1 -triple x86_64-unknown-linux-gnu t.cc -O2 -emit-obj
# finishes in 3 minutes
#0 0x00000000023c2163 in (anonymous
namespace)::ScheduleDAGRRList::PickNodeToScheduleBottomUp() ()
#1 0x00000000023bfd77 in (anonymous namespace)::ScheduleDAGRRList::Schedule()
()
#2 0x000000000235075a in llvm::SelectionDAGISel::CodeGenAndEmitDAG() ()
#3 0x000000000234dd4e in
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) ()
#4 0x000000000234a512 in
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) ()
#5 0x00000000010c5d91 in (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) ()
#6 0x000000000149eaf4 in
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) ()
#7 0x00000000017692ff in llvm::FPPassManager::runOnFunction(llvm::Function&)
()
the code is generated by an experimental clang-proto-fuzzer</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>