http://llvm.org/bugs/show_bug.cgi?id=19163

            Bug ID: 19163
           Summary: Excessive compile time when using -fsanitize=undefined
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

The attached file takes almost 9 minutes to compile on my machine:

markus@x4 blink % time clang++ -fsanitize=undefined -fno-sanitize=vptr -c 
-Qunused-arguments -Qunused-arguments -Wall -Wpointer-arith
-Woverloaded-virtual -Werror=return-type -Werror=int-to-pointer-cast
-Wtype-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof
-Wno-inline-new-delete -Wno-c++0x-extensions -Wno-extended-offsetof
-Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-mismatched-tags
-march=native -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions
-fno-math-errno -std=gnu++0x -pthread -pipe -DDEBUG -D_DEBUG -DTRACING -g -O3
-fno-omit-frame-pointer Unified_cpp_content_media_webaudio_blink0.ii

clang++ -fsanitize=undefined -fno-sanitize=vptr -c -Qunused-arguments  -Wall  
531.00s user 0.09s system 100% cpu 8:51.00 total

Without -fsanitize=undefined it takes 3.3 seconds.

Perf shows:
 61.78%  libLLVMCodeGen.so  [.] (anonymous
namespace)::InlineSpiller::propagateSiblingValue(llvm::DenseMapIterator<llvm::VNInfo*,
(anonymous namespace)::InlineSpille
 12.88%  libLLVMCodeGen.so  [.] (anonymous
namespace)::InlineSpiller::traceSiblingValue(unsigned int, llvm::VNInfo*,
llvm::VNInfo*)
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to