- Mar 21, 2013
-
-
Alexey Samsonov authored
[ASan] Switch ASan to generic ThreadRegistry from sanitizer_common. Delete ASan-specific AsanThreadRegistry. llvm-svn: 177634
-
Alexander Potapenko authored
[ASan] Let the users to invoke `clang -fsanitize=address` to link binaries targeting the iOS simulator. llvm-svn: 177633
-
Chandler Carruth authored
header. This method is called in the hot path for *many* passes, SROA is what caught my interest. A common pattern is that which branch of the switch should be taken is known in the callsite and so it is a very good candidate for inlining and simplification. Moving it into the header allows the optimizer to fold a lot of boring, repeatitive code in callers of this routine. I'm seeing pretty significant speedups in parts of SROA and I suspect other passes will see similar speedups if they end up working with type sizes frequently. I've not seen any significant growth of the binaries as a consequence, but let me know if you see anything suspicious here. llvm-svn: 177632
-
Chandler Carruth authored
The key part of this is ensuring that name prefixes remain in a Twine form until we get to a point where we can nuke them under NDEBUG. This is tricky using the old APIs as they played fast and loose with Twine, which is prone to serious error. The inserter is much cleaner as it is actually in the call stack leading to the setName call, and so has a good opportunity to prepend the prefix. This matters more than you might imagine because most runs over an alloca find a single partition, and rewrite 3 or 4 instructions referring to it. As a consequence doing this lazily and exclusively with Twine allows the optimizer to delete more of it and shaves another 2% to 3% off of the release build's SROA run time for PR15412. I also think the APIs are cleaner, and the use of Twine is more reliable, so I consider it a win-win despite the churn required to reach this state. llvm-svn: 177631
-
Evgeniy Stepanov authored
llvm-svn: 177630
-
Dmitry Vyukov authored
llvm-svn: 177629
-
Dmitry Vyukov authored
llvm-svn: 177628
-
Dmitry Vyukov authored
tsan: use a single background thread for memory profiler and memory flush (and later for symbolizer flush) llvm-svn: 177627
-
Bob Wilson authored
llvm-svn: 177626
-
Greg Clayton authored
llvm-svn: 177625
-
Jason Molenda authored
This returns a vector of <file address, size> entries for all of the functions in the module that have an eh_frame FDE. Update ObjectFileMachO to use the eh_frame FDE function addresses if the LC_FUNCTION_STARTS section is missing, to fill in the start addresses of any symbols that have been stripped from the binary. Generally speaking, lldb works best if it knows the actual start address of every function in a module - it's especially important for unwinding, where lldb inspects the instructions in the prologue of the function. In a stripped binary, it is deprived of this information and it reduces the quality of our unwinds and saved register retrieval. Other ObjectFile users may want to use the function addresses from DWARFCallFrameInfo to fill in any stripped symbols like ObjectFileMachO does already. <rdar://problem/13365659> llvm-svn: 177624
-
Greg Clayton authored
llvm-svn: 177623
-
Meador Inge authored
The 'Modified' variable should have been removed from SimplifyLibCalls in r177619, but was missed. This commit removes it. llvm-svn: 177622
-
rdar://problem/13037793Douglas Gregor authored
<rdar://problem/13037793> Allow the names of modules to differ from the name of their subdirectory in the include path. llvm-svn: 177621
-
Matt Arsenault authored
llvm-svn: 177620
-
Meador Inge authored
The simplify-libcalls pass implemented a doInitialization hook to infer function prototype attributes for well-known functions. Given that the simplify-libcalls pass is going away *and* that the functionattrs pass is already in place to deduce function attributes, I am moving this logic to the functionattrs pass. This approach was discussed during patch review: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121126/157465.html. llvm-svn: 177619
-
Richard Smith authored
comparing type_info names, since the latter have better uniqueness guarantees in practice. llvm-svn: 177618
-
Greg Clayton authored
This test case will measure memory usage and expression timings in frame zero and at higher frames. llvm-svn: 177617
-
Greg Clayton authored
Fixed the ValidOffsetForDataOfSize() to use simpler logic. Fixed DataExtractor::BytesLeft() to return the correct value. llvm-svn: 177616
-
Greg Clayton authored
Simplify the logic for DNBDataRef::ValidOffsetForDataOfSize() and DNBDataRef::ValidOffset() functions. llvm-svn: 177615
-
David Blaikie authored
llvm-svn: 177614
-
John McCall authored
enum return type to be converted to blocks with any integer type of the same size. rdar://13463504 llvm-svn: 177613
-
Manman Ren authored
Testing cases for structs of structs and unions of structs. llvm-svn: 177612
-
Jakob Stoklund Olesen authored
llvm-svn: 177611
-
David Blaikie authored
This removes the DICompileUnit special case from DIScope. llvm-svn: 177610
-
David Blaikie authored
This isn't necessary & with the next change to LLVM the DW_TAG_file_type entry won't be emitted at all - only the raw filename/directory pair, so match on that directly instead. llvm-svn: 177609
-
Jakub Staszak authored
They are generally faster (at least not slower) than post-inc, post-dec. llvm-svn: 177608
-
Jakub Staszak authored
llvm-svn: 177607
-
Richard Smith authored
* libclang_rt-san-* is sanitizer_common, and is linked in only if no other sanitizer runtime is present. * libclang_rt-ubsan-* is the piece of the runtime which doesn't depend on a C++ ABI library, and is always linked in. * libclang_rt-ubsan_cxx-* is the piece of the runtime which depends on a C++ ABI library, and is only linked in when linking a C++ binary. The Darwin ubsan runtime is unchanged. For more details, see Clang change r177605. llvm-svn: 177606
-
Richard Smith authored
* libclang_rt-san-* is sanitizer_common, and is linked in only if no other sanitizer runtime is present. * libclang_rt-ubsan-* is the piece of the runtime which doesn't depend on a C++ ABI library, and is always linked in. * libclang_rt-ubsan_cxx-* is the piece of the runtime which depends on a C++ ABI library, and is only linked in when linking a C++ binary. This change also switches us to using -whole-archive for the ubsan runtime (which is made possible by the above split), and switches us to only linking the sanitizer runtime into the main binary and not into DSOs (which is made possible by using -whole-archive). The motivation for this is to only link a single copy of sanitizer_common into any binary. This is becoming important now because we want to share more state between multiple sanitizers in the same process (for instance, we want a single shared output mutex). The Darwin ubsan runtime is unchanged; because we use a DSO there, we don't need this complexity. llvm-svn: 177605
-
Shankar Easwaran authored
llvm-svn: 177604
-
Shankar Easwaran authored
llvm-svn: 177603
-
Reid Kleckner authored
Native Windows Python will do line ending translation by default, which we don't want in bash scripts. If we're not native Windows Python, then 'b' is ignored. llvm-svn: 177602
-
Bill Wendling authored
llvm-svn: 177601
-
Justin Holewinski authored
llvm-svn: 177600
-
Jakob Stoklund Olesen authored
It's not yet clear if these instructions need a more careful model. llvm-svn: 177599
-
Jakob Stoklund Olesen authored
This is used for all the expensive system instructions. llvm-svn: 177598
-
Enrico Granata authored
Making a manual mode of operation for measurements, where you can manually call start() and stop() instead of using the function-call syntax This is especially useful to take measurements that span multiple test steps, or where you need to have different operations fall under the same measurement An example of use is in the formatters perf test case llvm-svn: 177597
-
Nadav Rotem authored
When computing the demanded bits of Load SDNodes, make sure that we are looking at the loaded-value operand and not the ptr result (in case of pre-inc loads). rdar://13348420 llvm-svn: 177596
-
David Blaikie authored
llvm-svn: 177595
-