[llvm-bugs] [Bug 25794] New: Long compile for OpenCV3 dls.cpp when targeting cortex-a53

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 10 00:02:38 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25794

            Bug ID: 25794
           Summary: Long compile for OpenCV3 dls.cpp when targeting
                    cortex-a53
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: srhines at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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

-- 
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/20151210/2085e3a1/attachment.html>


More information about the llvm-bugs mailing list