- Apr 28, 2014
-
-
Chandler Carruth authored
just handles the pre-DFS case. Also add some test cases for this case to make sure it works. llvm-svn: 207411
-
Chandler Carruth authored
contract (and be much more useful). It now provides exactly the post-order traversal a caller might need to perform on newly formed SCCs. llvm-svn: 207410
-
Chandler Carruth authored
mapping from a basic block to an incoming value, either for removal or just lookup, is linear in the number of predecessors, and we were doing this for every entry in the 'Preds' list which is in many cases almost all of them! Unfortunately, the fixes are quite ugly. PHI nodes just don't make this operation easy. The efficient way to fix this is to have a clever 'remove_if' operation on PHI nodes that lets us do a single pass over all the incoming values of the original PHI node, extracting the ones we care about. Then we could quickly construct the new phi node from this list. This would remove the remaining underlying quadratic movement of unrelated incoming values and the need for silly backwards looping to "minimize" how often we hit the quadratic case. This is the last obvious fix for PR19499. It shaves another 20% off the compile time for me, and while UpdatePHINodes remains in the profile, most of the time is now stemming from the well known inefficiencies of LVI and jump threading. llvm-svn: 207409
-
Viktor Kutuzov authored
llvm-svn: 207408
-
Benjamin Kramer authored
llvm-svn: 207407
-
Chandler Carruth authored
domtree. When finding a nearest common dominator, if neither A dominates B nor B dominates A, we immediately resorted to a tree walk. The tree walk here is *particularly* expensive because we have to build a (potentially very large) set for one side's dominators and compare it with the other side's. If at any point we have DFS info, we don't need to do any of this. We can just walk up one side's immediate dominators and return the first one which dominates the other side. Because of the DFS info, the dominates queries are trivially constant time. This reduces the optimizers time in the test case on PR19499 by 70%. It now optimizes in about 30 seconds for me. And there is still more to be done for this case. llvm-svn: 207406
-
Daniel Jasper authored
Before: *(int *)(p &~3UL) = 0; After: *(int *)(p & ~3UL) = 0; This fixes llvm.org/PR19464. llvm-svn: 207405
-
Dan Liew authored
abort while configuring if doxygen could not be found. This is desirable because if the build is going to fail then it should fail as early as possible. llvm-svn: 207404
-
Chandler Carruth authored
by avoiding inlining massive switches merely because they have no instructions in them. These switches still show up where we fail to form lookup tables, and in those cases they are actually going to cause a very significant code size hit anyways, so inlining them is not the right call. The right way to fix any performance regressions stemming from this is to enhance the switch-to-lookup-table logic to fire in more places. This makes PR19499 about 5x less bad. It uncovers a second compile time problem in that test case that is unrelated (surprisingly!). llvm-svn: 207403
-
Daniel Jasper authored
This fixes llvm.org/PR19482. Before: switch (a) { case(B) : return; } After: switch (a) { case (B): return; } llvm-svn: 207402 -
Hao Liu authored
llvm-svn: 207401
-
Daniel Jasper authored
This fixes llvm.org/PR19450. Before: @interface BookmarkHomeHandsetViewController ()<BookmarkAllCollectionViewDelegate, BookmarkFolderCollectionViewDelegate, BookmarkMenuViewControllerDelegate, BookmarkSearchViewControllerDelegate> { } After: @interface aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ()< aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa> { } llvm-svn: 207400 -
Hao Liu authored
llvm-svn: 207399
-
Todd Fiala authored
Fixed up typo in lldb-gdbserver name missed when working on the OS X side earlier today for debugserver support. llvm-svn: 207398
-
Craig Topper authored
llvm-svn: 207397
-
Nico Weber authored
This exposed a leak, fix that. llvm-svn: 207396
-
Todd Fiala authored
TestLldbGdbServer now supports both lldb-gdbserver (llgs) and debugserver tests. Similar to the dsym/dwarf tests, they allow running the same underlying gdb remote protocol tests against lldb-gdbserver and debugserver. This will help make sure the protocol-level tests for lldb-gdbserver faithfully represent what debugserver does on OS X. Switched back gdb remote protocol test logging to warning and above (accidentally submitted it at debug level in a recent commit). llvm-svn: 207395
-
Craig Topper authored
llvm-svn: 207394
-
Saleem Abdulrasool authored
Use C++11 range-based loops rather than explicit constructors. NFC. llvm-svn: 207393
-
Alp Toker authored
It's possible that the "comment AST" may be replaced or split out in the midterm, any anyway this makes the headers easier to read. Developers don't currently need to include "clang-c/Documentation.h" explicitly and there's no macro to test for availability yet. The raw comment and brief comment accessors have been kept in Index.h though brief support may also move here as a separate proposal. This is not a deprecation, just a gentle separation of concerns as we look to simplify the built-in representation of comment nodes and support external comment processors. llvm-svn: 207392
-
Argyrios Kyrtzidis authored
rdar://16223810 llvm-svn: 207391
-
Saleem Abdulrasool authored
llvm-svn: 207390
-
Chandler Carruth authored
our own portability system to cope without snprintf. llvm-svn: 207389
-
Chandler Carruth authored
Unix-like OSes. llvm-svn: 207388
-
Chandler Carruth authored
odd to have the output of 'llvm-ar tv' depend on the format of TimeValue::str(), but that's what we have today. If anyone needs the output to remain compatible with GNU ar or old versions of llvm-ar, just shout and I'll switch the code to manually format its times. Note that there isn't a portable format -- Mac and GNU have different formats at least (thanks Rafael!) so... llvm-svn: 207387
-
Argyrios Kyrtzidis authored
Libraries specify enabled/disabled features using macro defs of 0/1, in such cases the -Wconstant-logical-operand is noise. rdar://15410291 llvm-svn: 207386
-
Chandler Carruth authored
each line. This is particularly nice for tracking which run of a particular pass over a particular function was slow. This also required making the TimeValue string much more useful. First, there is a standard format for writing out a date and time. Let's use that rather than strings that would have to be parsed. Second, actually output the nanosecond resolution that timevalue claims to have. This is proving useful working on PR19499, so I figured it would be generally useful to commit. llvm-svn: 207385
-
NAKAMURA Takumi authored
llvm-svn: 207384
-
Craig Topper authored
llvm-svn: 207383
-
Argyrios Kyrtzidis authored
[Index/DocComments] When cloning a full comment, pick the template parameters from the original FullComment, if the parameters are not already set (e.g. because it is a typedef). Fixes crash of rdar://16128173 llvm-svn: 207382
-
Rafael Espindola authored
This fixes the asm printer implementation and lets the parser be unaware of what .thumb_set is. llvm-svn: 207381
-
Craig Topper authored
llvm-svn: 207380
-
Craig Topper authored
llvm-svn: 207379
-
Craig Topper authored
llvm-svn: 207378
-
Craig Topper authored
llvm-svn: 207377
-
Craig Topper authored
llvm-svn: 207376
-
Craig Topper authored
llvm-svn: 207375
-
Craig Topper authored
llvm-svn: 207374
-
Craig Topper authored
llvm-svn: 207373
-
Adrian Prantl authored
default arguments to the function. No functional change. llvm-svn: 207372
-