<html>
<head>
<base href="https://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 --- - Long compile for OpenCV3 dls.cpp when targeting cortex-a53"
href="https://llvm.org/bugs/show_bug.cgi?id=25794">25794</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Long compile for OpenCV3 dls.cpp when targeting cortex-a53
</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>Backend: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>srhines@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>When compiling dls.cpp in external/opencv3 (from Android's AOSP tree), we
discovered that -mcpu=cortex-a53 caused the compilation to go from ~8 seconds
to ~30 minutes! Removing this -mcpu flag or switching to -O1 brings it back to
a reasonable compile time.
clang++ -c -fno-exceptions -Wno-multichar -fno-strict-aliasing
-fstack-protector -ffunction-sections -fdata-sections -funwind-tables
-Werror=format-security -D_FORTIFY_SOURCE=2 -fno-short-enums
-no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast
-Werror=implicit-function-declaration -DANDROID -fmessage-length=0 -W -Wall
-Wno-unused -Winit-self -Wpointer-arith -Werror=return-type
-Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG -O2 -g
-Wstrict-aliasing=2 -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof
-Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic
-Wno-unused-command-line-argument -fcolor-diagnostics -nostdlibinc -target
aarch64-linux-android
-Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin
-fvisibility-inlines-hidden -Wsign-promo -Wno-inconsistent-missing-override
-nostdlibinc -frtti -fexceptions -D__OPENCV_BUILD=1 -DCVAPI_EXPORTS -fPIC
-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
-Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD
dls.ii -mcpu=cortex-a53</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>