summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make sure we update the static local decl address map when we are forced to ↵Eli Friedman2012-03-093-6/+24
| | | | | | rebuild a global because of the initializer. <rdar://problem/10957867>. llvm-svn: 152372
* Changed ValueObject to use a dedicated ChildrenManager class to store its ↵Enrico Granata2012-03-094-9/+131
| | | | | | | | | | | | | | | children, instead of an std::vector This solves an issue where a ValueObject was getting a wrong children count (usually, a huge value) and trying to resize the vector of children to fit that many ValueObject* Added a loop detection algorithm to the synthetic children provider for std::list Added a few more checks to the synthetic children provider for std::vector Both std::list and std::vector's synthetic children providers now cache the count of children instead of recomputing it every time std::map has a field that stores the count, so there is little need to cache it on our side llvm-svn: 152371
* Make sure constant emission handles initializer lists with strings ↵Eli Friedman2012-03-092-1/+7
| | | | | | correctly. Part of <rdar://problem/10957867>. llvm-svn: 152370
* Fix a silly restriction on the fast-path for hash_combine_range. ThisChandler Carruth2012-03-091-1/+1
| | | | | | | | | | caused several clients to select the slow variation. =[ This is extra annoying because we don't have any realistic way of testing this -- by design, these two functions *must* compute the same value. Found while inspecting the output of some benchmarks I'm working on. llvm-svn: 152369
* Undo a previous restriction on the inline cost calculation which NickChandler Carruth2012-03-092-107/+187
| | | | | | | | | | | | | | | | | | | | | | introduced. Specifically, there are cost reductions for all constant-operand icmp instructions against an alloca, regardless of whether the alloca will in fact be elligible for SROA. That means we don't want to abort the icmp reduction computation when we abort the SROA reduction computation. That in turn frees us from the need to keep a separate worklist and defer the ICmp calculations. Use this new-found freedom and some judicious function boundaries to factor the innards of computing the cost factor of any given instruction out of the loop over the instructions and into static helper functions. This greatly simplifies the code, and hopefully makes it more clear what is happening here. Reviewed by Eric Christopher. There is some concern that we'd like to ensure this doesn't get out of hand, and I plan to benchmark the effects of this change over the next few days along with some further fixes to the inline cost. llvm-svn: 152368
* Add the capability on OS X to utilize 'xcrun' to locate the compilers used ↵Johnny Chen2012-03-091-1/+26
| | | | | | | | | for building the inferior programs to be debugged while running the test suite. By default, compilers is set to ['clang'] and can be overridden using the "-C compilerA^compilerB" option. llvm-svn: 152367
* Fix a regression from r147481.Chad Rosier2012-03-093-1/+20
| | | | | | | | | | | | Original commit message from r147481: DAGCombine for transforming 128->256 casts into a vmovaps, rather then a vxorps + vinsertf128 pair if the original vector came from a load. Fix: Unaligned loads need to generate a vmovups. rdar://10974078 llvm-svn: 152366
* [AST] NestedNameSpecifier's ctor/dtor are trivial and should be inlined.Daniel Dunbar2012-03-092-10/+6
| | | | llvm-svn: 152365
* [AST] Type::isVoidType() is trivial and should be inlined.Daniel Dunbar2012-03-092-7/+6
| | | | llvm-svn: 152364
* [AST] Reduce Decl::getASTContext() calls.Daniel Dunbar2012-03-098-33/+50
| | | | | | | - This function is not at all free; pass it around along some hot paths instead of recomputing it deep inside various VarDecl methods. llvm-svn: 152363
* [asan] add a (disabled) stress test for __asan_get_ownershipKostya Serebryany2012-03-091-0/+12
| | | | llvm-svn: 152362
* [analyzer] Implement basic path diagnostic pruning based on "interesting" ↵Ted Kremenek2012-03-0925-747/+944
| | | | | | | | | | | | | | | | | symbols and regions. Essentially, a bug centers around a story for various symbols and regions. We should only include the path diagnostic events that relate to those symbols and regions. The pruning is done by associating a set of interesting symbols and regions with a BugReporter, which can be modified at BugReport creation or by BugReporterVisitors. This patch reduces the diagnostics emitted in several of our test cases. I've vetted these as having desired behavior. The only regression is a missing null check diagnostic for the return value of realloc() in test/Analysis/malloc-plist.c. This will require some investigation to fix, and I have added a FIXME to the test case. llvm-svn: 152361
* misched: allow the default scheduler to be one chosen by the target.Andrew Trick2012-03-092-19/+41
| | | | llvm-svn: 152360
* Added TargetPassConfig::enablePassAndrew Trick2012-03-091-1/+4
| | | | llvm-svn: 152359
* the formatter for NSNotification was not being initialized correctlyEnrico Granata2012-03-091-3/+4
| | | | llvm-svn: 152358
* Change the test driver so that, by default, it takes into consideration of ↵Johnny Chen2012-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | both 'x86_64' and 'i386' architectures when building the inferior programs. Example: /Volumes/data/lldb/svn/ToT/test $ ./dotest.py -v functionalities/watchpoint LLDB build dir: /Volumes/data/lldb/svn/ToT/build/Debug LLDB-123 Path: /Volumes/data/lldb/svn/ToT URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk Repository Root: https://johnny@llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 152244 Node Kind: directory Schedule: normal Last Changed Author: gclayton Last Changed Rev: 152244 Last Changed Date: 2012-03-07 13:03:09 -0800 (Wed, 07 Mar 2012) Session logs for test failures/errors/unexpected successes will go into directory '2012-03-08-16_43_51' Command invoked: python ./dotest.py -v functionalities/watchpoint Configuration: arch=x86_64 ---------------------------------------------------------------------- Collected 21 tests 1: test_hello_watchlocation_with_dsym (TestWatchLocation.HelloWatchLocationTestCase) Test watching a location with '-x size' option. ... ok 2: test_hello_watchlocation_with_dwarf (TestWatchLocation.HelloWatchLocationTestCase) Test watching a location with '-x size' option. ... ok 3: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Test a simple sequence of watchpoint creation and watchpoint hit. ... ok 4: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Test a simple sequence of watchpoint creation and watchpoint hit. ... ok 5: test_watchpoint_multiple_threads_with_dsym (TestWatchpointMultipleThreads.WatchpointForMultipleThreadsTestCase) Test that lldb watchpoint works for multiple threads. ... ok 6: test_watchpoint_multiple_threads_with_dwarf (TestWatchpointMultipleThreads.WatchpointForMultipleThreadsTestCase) Test that lldb watchpoint works for multiple threads. ... ok 7: test_rw_disable_after_first_stop__with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint but disable it after the first stop. ... ok 8: test_rw_disable_after_first_stop_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint but disable it after the first stop. ... ok 9: test_rw_disable_then_enable_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint, disable initially, then enable it. ... ok 10: test_rw_disable_then_enable_with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint, disable initially, then enable it. ... ok 11: test_rw_watchpoint_delete_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test delete watchpoint and expect not to stop for watchpoint. ... ok 12: test_rw_watchpoint_delete_with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test delete watchpoint and expect not to stop for watchpoint. ... ok 13: test_rw_watchpoint_set_ignore_count_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test watchpoint ignore count and expect to not to stop at all. ... ok 14: test_rw_watchpoint_set_ignore_count_with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test watchpoint ignore count and expect to not to stop at all. ... ok 15: test_rw_watchpoint_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint and expect to stop two times. ... ok 16: test_rw_watchpoint_with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint and expect to stop two times. ... ok 17: test_watchpoint_cond_with_dsym (TestWatchpointConditionCmd.WatchpointConditionCmdTestCase) Test watchpoint condition. ... ok 18: test_watchpoint_cond_with_dwarf (TestWatchpointConditionCmd.WatchpointConditionCmdTestCase) Test watchpoint condition. ... ok 19: test_watchlocation_with_dsym_using_watchpoint_set (TestWatchLocationWithWatchSet.WatchLocationUsingWatchpointSetTestCase) Test watching a location with 'watchpoint set expression -w write -x size' option. ... ok 20: test_watchlocation_with_dwarf_using_watchpoint_set (TestWatchLocationWithWatchSet.WatchLocationUsingWatchpointSetTestCase) Test watching a location with 'watchpoint set expression -w write -x size' option. ... ok 21: test_error_cases_with_watchpoint_set (TestWatchpointSetErrorCases.WatchpointSetErrorTestCase) Test error cases with the 'watchpoint set' command. ... ok ---------------------------------------------------------------------- Ran 21 tests in 74.590s OK Configuration: arch=i386 ---------------------------------------------------------------------- Collected 21 tests 1: test_hello_watchlocation_with_dsym (TestWatchLocation.HelloWatchLocationTestCase) Test watching a location with '-x size' option. ... ok 2: test_hello_watchlocation_with_dwarf (TestWatchLocation.HelloWatchLocationTestCase) Test watching a location with '-x size' option. ... ok 3: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Test a simple sequence of watchpoint creation and watchpoint hit. ... ok 4: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Test a simple sequence of watchpoint creation and watchpoint hit. ... ok 5: test_watchpoint_multiple_threads_with_dsym (TestWatchpointMultipleThreads.WatchpointForMultipleThreadsTestCase) Test that lldb watchpoint works for multiple threads. ... ok 6: test_watchpoint_multiple_threads_with_dwarf (TestWatchpointMultipleThreads.WatchpointForMultipleThreadsTestCase) Test that lldb watchpoint works for multiple threads. ... ok 7: test_rw_disable_after_first_stop__with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint but disable it after the first stop. ... ok 8: test_rw_disable_after_first_stop_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint but disable it after the first stop. ... ok 9: test_rw_disable_then_enable_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint, disable initially, then enable it. ... ok 10: test_rw_disable_then_enable_with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint, disable initially, then enable it. ... ok 11: test_rw_watchpoint_delete_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test delete watchpoint and expect not to stop for watchpoint. ... ok 12: test_rw_watchpoint_delete_with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test delete watchpoint and expect not to stop for watchpoint. ... ok 13: test_rw_watchpoint_set_ignore_count_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test watchpoint ignore count and expect to not to stop at all. ... ok 14: test_rw_watchpoint_set_ignore_count_with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test watchpoint ignore count and expect to not to stop at all. ... ok 15: test_rw_watchpoint_with_dsym (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint and expect to stop two times. ... ok 16: test_rw_watchpoint_with_dwarf (TestWatchpointCommands.WatchpointCommandsTestCase) Test read_write watchpoint and expect to stop two times. ... ok 17: test_watchpoint_cond_with_dsym (TestWatchpointConditionCmd.WatchpointConditionCmdTestCase) Test watchpoint condition. ... ok 18: test_watchpoint_cond_with_dwarf (TestWatchpointConditionCmd.WatchpointConditionCmdTestCase) Test watchpoint condition. ... ok 19: test_watchlocation_with_dsym_using_watchpoint_set (TestWatchLocationWithWatchSet.WatchLocationUsingWatchpointSetTestCase) Test watching a location with 'watchpoint set expression -w write -x size' option. ... ok 20: test_watchlocation_with_dwarf_using_watchpoint_set (TestWatchLocationWithWatchSet.WatchLocationUsingWatchpointSetTestCase) Test watching a location with 'watchpoint set expression -w write -x size' option. ... ok 21: test_error_cases_with_watchpoint_set (TestWatchpointSetErrorCases.WatchpointSetErrorTestCase) Test error cases with the 'watchpoint set' command. ... ok ---------------------------------------------------------------------- Ran 21 tests in 67.059s OK llvm-svn: 152357
* Cache MBB->begin. It's possible the scheduler / bundler may change MBB->begin().Evan Cheng2012-03-091-3/+3
| | | | llvm-svn: 152356
* Use the old -std=c++0x flag for compatibility with pre-2011 versions of GCC.Benjamin Kramer2012-03-091-4/+4
| | | | llvm-svn: 152355
* Bump to lldb-125.Jason Molenda2012-03-084-18/+18
| | | | llvm-svn: 152353
* [analyzer] Use call graph to determine order in which functions areAnna Zaks2012-03-081-7/+88
| | | | | | | | | | | | | | analyzed. The CallGraph is used when inlining is on, which is the current default. This alone does not bring any performance improvement. It's a stepping stone for the upcoming optimization in which we do not re-analyze a function that has already been analyzed while inlined in other functions. Using the call graph makes it easier to play with the order of functions to minimize redundant analyzes. llvm-svn: 152352
* [analyzer] Rework inlining related command line options.Anna Zaks2012-03-0819-32/+149
| | | | | | | | | - Remove -analyzer-inline-call. - Add -analyzer-ipa=[none|inlining] - Add -analyzer-inlining-mode to allow experimentation for different performance tuning methods. llvm-svn: 152351
* Call Graph: Only the root node is allowed to have an invalid Decl*.Anna Zaks2012-03-081-1/+4
| | | | llvm-svn: 152350
* Remove a test FIXME for a case which is already fixed.Richard Smith2012-03-081-3/+2
| | | | llvm-svn: 152349
* Fix a couple of issues with literal-operator-id parsing, and provide recoveryRichard Smith2012-03-084-11/+88
| | | | | | | | | | | | for a few kinds of error. Specifically: Since we're after translation phase 6, the "" token might be formed by multiple source-level string literals. Checking the token width is not a correct way of detecting empty string literals, due to escaped newlines. Diagnose and recover from a missing space between "" and suffix, and from string literals other than "", which are followed by a suffix. llvm-svn: 152348
* [asan]: fix off-by-one error in stack unwinder (asan issue #44; reproduced ↵Kostya Serebryany2012-03-081-1/+1
| | | | | | thanks to 'csmith' fuzzer) llvm-svn: 152347
* Silence unused function warning when graphviz is not available.Benjamin Kramer2012-03-081-5/+3
| | | | llvm-svn: 152346
* Don't crash when a statement in a block is ill-formed butJohn McCall2012-03-082-0/+15
| | | | | | introduces cleanups anyway. llvm-svn: 152345
* When checking the encoding of an 8-bit string literal, don't just check theRichard Smith2012-03-085-19/+51
| | | | | | | first codepoint! Also, don't reject empty raw string literals for spurious "encoding" issues. Also, don't rely on undefined behavior in ConvertUTF.c. llvm-svn: 152344
* Remove the no longer existent psp triple from a test.Benjamin Kramer2012-03-081-2/+1
| | | | | | | The test fell back to the C backend, making it useless and it started to fail on configurations that don't build the C backend. llvm-svn: 152342
* [asan] don't use dl_iterate_phdr on linux, go back to using /proc/self/maps. ↵Kostya Serebryany2012-03-083-6/+9
| | | | | | Hopefully fixes the problem reported by our mozilla friends. llvm-svn: 152341
* Turn explicit construction of temporaries using initializer list syntax into ↵Sebastian Redl2012-03-082-4/+26
| | | | | | CXXTemporaryObjectExprs, not just CXXConstructExprs, which have a worrying tendency to vanish. Fixes PR12167. llvm-svn: 152340
* Untangle getUnderlyingDeclImpl, no functionality change.Benjamin Kramer2012-03-081-9/+7
| | | | llvm-svn: 152339
* Enable -Wstrict-aliasing=2 -Wstrict-overflow=4.Howard Hinnant2012-03-081-1/+1
| | | | llvm-svn: 152338
* Fixed a crasher when Xcode calls into ↵Johnny Chen2012-03-081-6/+15
| | | | | | | | | ScriptInterpreterPython::ResetOutputFileHandle(). The Locker should only perform acquire/free lock operation, but no enter/leave session at all. Also added sanity checks for items passed to the PyDict_SetItemString() calls. llvm-svn: 152337
* Enable/silence -Wsign-compare.Howard Hinnant2012-03-081-1/+2
| | | | llvm-svn: 152336
* Enable/silence -Wsign-compare.Howard Hinnant2012-03-082-11/+12
| | | | llvm-svn: 152335
* Enable/silence -Wmissing-field-initializers.Howard Hinnant2012-03-082-1/+16
| | | | llvm-svn: 152334
* [utils/FuzzTest] Add '--stop-on-fail' to stop the script on the first failureArgyrios Kyrtzidis2012-03-081-1/+11
| | | | | | without reverting the changes. llvm-svn: 152333
* [AST] Clean up NamedDecl::getUnderlyingDecl() change a bit.Daniel Dunbar2012-03-081-3/+7
| | | | llvm-svn: 152332
* Remove stray semi-colon.Daniel Dunbar2012-03-081-1/+1
| | | | llvm-svn: 152331
* [AST] APValue: Split the fast path of MakeUninit to be inline.Daniel Dunbar2012-03-082-2/+6
| | | | | | | - This change seems to be a tiny loss on 403.gcc/combine.c (.2%), but I think it is the right thing to do. llvm-svn: 152330
* Enable/silence -Wunused-variable.Howard Hinnant2012-03-082-1/+3
| | | | llvm-svn: 152329
* Enable/silence -Wconversion.Howard Hinnant2012-03-084-8/+8
| | | | llvm-svn: 152328
* [utils/FuzzTest] The help message says that if you don't specify --max-testsArgyrios Kyrtzidis2012-03-081-1/+1
| | | | | | "the script will run forever continually picking new tests to run", make it so. llvm-svn: 152327
* Enable/silence -Wshadow.Howard Hinnant2012-03-082-4/+1
| | | | llvm-svn: 152325
* [utils/FuzzTest] For --filelist the option type is string, not integer.Argyrios Kyrtzidis2012-03-081-1/+1
| | | | llvm-svn: 152324
* Enable/silence -Wsign-conversion.Howard Hinnant2012-03-084-243/+324
| | | | llvm-svn: 152323
* [Basic] PartialDiagnostic: Manual split out the cold part of freeStorage(), theDaniel Dunbar2012-03-081-0/+10
| | | | | | | hot path will typically profitably get inlined (based on what I see from the users of PartialDiagnostic). llvm-svn: 152322
* [AST] Change NamedDecl::getUnderlyingDecl() to inline the fast (and ↵Daniel Dunbar2012-03-082-2/+8
| | | | | | incredibly common) path. llvm-svn: 152321
* Replace MarkVarRequired with a more genericRafael Espindola2012-03-088-21/+22
| | | | | | HandleCXXStaticMemberVarInstantiation. Suggested by Argyrios. llvm-svn: 152320
OpenPOWER on IntegriCloud