summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Frontend: Create a virtual file for named pipe inputs.Daniel Dunbar2012-11-272-4/+5
| | | | | | - This ensures we see the right buffer size for the file. llvm-svn: 168636
* Step towards implementation of pass manager with doInitialization and ↵Owen Anderson2012-11-2612-81/+33
| | | | | | | | doFinalization per module detangled from runOn?? calls, still has temporary code not to break ASAN to be removed when that pass conforms to the proposed model Patch by Pedro Artigas, with feedback from by Chandler Carruth. llvm-svn: 168635
* The Function calling thread plan was replacing the stored stop info too ↵Jim Ingham2012-11-266-9/+49
| | | | | | | | | | soon, causing recursive entry into the breakpoint StopInfo's PerformAction, which is bad. Reworked this so that it is now correct. <rdar://problem/12501259> llvm-svn: 168634
* Add an assertion to ensure freezeReservedRegs() is only ever called once.Chad Rosier2012-11-261-0/+2
| | | | llvm-svn: 168633
* Make this test less sensitive.Eli Bendersky2012-11-261-4/+4
| | | | | | | It currently assumes register numbering and any harmless change in the X86 register naming makes it fail. It's enough to match the register names. llvm-svn: 168632
* Now that the X86 Maximal Stack Alignment Check pass has been removed (i.e.,Chad Rosier2012-11-262-3/+0
| | | | | | | | | r168627), we no longer need to call the freezeReservedRegs() function a second time. Previously, this pass was conservatively adding the FP to the set of reserved registers, requiring the second update to the reserved registers. rdar://12719844 llvm-svn: 168631
* Now that the X86 Maximal Stack Alignment Check pass has been removed (i.e.,Chad Rosier2012-11-261-1/+0
| | | | | | | | | r168627), we no longer need to call the freezeReservedRegs() function a second time. Previously, this pass was conservatively adding the FP to the set of reserved registers, requiring the second update to the reserved registers. rdar://12719844 llvm-svn: 168630
* Get rid of the getPointeeAlignment helper function fromEli Friedman2012-11-262-22/+14
| | | | | | | | InstCombineLoadStoreAlloca.cpp, which had many issues. (At least two bugs were noted on llvm-commits, and it was overly conservative.) Instead, use getOrEnforceKnownAlignment. llvm-svn: 168629
* do not require cloog from configureSebastian Pop2012-11-262-2/+2
| | | | llvm-svn: 168628
* Remove the X86 Maximal Stack Alignment Check pass as it is no longer necessary.Chad Rosier2012-11-265-75/+19
| | | | | | | | | | | | | | | This pass was conservative in that it always reserved the FP to enable dynamic stack realignment, which allowed the RA to use aligned spills for vector registers. This happens even when spills were not necessary. The RA has since been improved to use unaligned spills when necessary. The new behavior is to realign the stack if the frame pointer was already reserved for some other reason, but don't reserve the frame pointer just because a function contains vector virtual registers. Part of rdar://12719844 llvm-svn: 168627
* Improve diagnostic on C++11 attribute specifiers that appear at wrong ↵Michael Han2012-11-264-8/+117
| | | | | | | | | | | | | syntactic locations around class specifiers. This change list implemented logic that explicitly detects several combinations of locations where C++11 attribute specifiers might be incorrectly placed within a class specifier. Previously we emit generic diagnostics like "expected identifier" for such cases; now we emit specific diagnostic against the misplaced attributes, this also fixed a bug in old code where attributes appear at legitimate locations were incorrectly rejected. Thanks to Richard Smith for reviewing! llvm-svn: 168626
* Automatically create .dSYM for libcompiler_rt.dylib when using Apple's ↵Nick Kledzik2012-11-265-3/+5
| | | | | | internal build system llvm-svn: 168625
* fix typoSebastian Pop2012-11-261-1/+1
| | | | | | | | Caught while compiling polly without cloog: ../tools/polly/lib/RegisterPasses.cpp:77: error: use of enum 'CodegenChoice' without previous declaration llvm-svn: 168624
* remove dependence on CLOOG_FOUND for PollyVectorizerChoiceSebastian Pop2012-11-261-2/+0
| | | | | | | | | When polly was configured with cmake without cloog, compilation stopped with: ../tools/polly/lib/CodeGen/BlockGenerators.cpp:662: error: 'PollyVectorizerChoice' was not declared in this scope ../tools/polly/lib/CodeGen/BlockGenerators.cpp:662: error: 'VECTORIZER_FIRST_NEED_GROUPED_UNROLL' was not declared in this scope llvm-svn: 168623
* Don't use iterator after being erased.Jakub Staszak2012-11-261-1/+1
| | | | llvm-svn: 168622
* remove dead codeSebastian Pop2012-11-262-10/+0
| | | | llvm-svn: 168621
* remove unused flagSebastian Pop2012-11-261-7/+0
| | | | llvm-svn: 168620
* Correct copy-pasto where we're talking about function attributes and not ↵Bill Wendling2012-11-261-1/+1
| | | | | | parameter attributes. llvm-svn: 168619
* Add missing "break". Thanks to Craig for spotting it.Eli Friedman2012-11-261-0/+1
| | | | | | I'm looking at ways to fix the relevant test so it can catch this sort of mistake. llvm-svn: 168618
* Fix comments in HexagonOperands.td.Jyotsna Verma2012-11-261-29/+27
| | | | llvm-svn: 168617
* rdar://12329730 (defect 2)Shuxin Yang2012-11-262-0/+36
| | | | | | | | | | | | | | Enhancement to InstCombine. Try to catch this opportunity: --------------------------------------------------------------- ((X^C1) >> C2) ^ C3 => (X>>C2) ^ ((C1>>C2)^C3) where the subexpression "X ^ C1" has more than one uses, and "(X^C1) >> C2" has single use. ---------------------------------------------------------------- Reviewed by Nadav (with minor change per his request). llvm-svn: 168615
* Improvement to TestGlobalVariables fixDaniel Malea2012-11-261-4/+4
| | | | | | | | - use lldb settings command instead of os.environ - use dyldPath fixture variable instead of hardcoding LD_LIBRARY_PATH - add tear-down hook to restore environment after testcase is run llvm-svn: 168613
* Fix for TestSharedLib.py (on Linux)Daniel Malea2012-11-263-6/+13
| | | | | | | - use lldb 'settings' command to help testcase find shared library - pull up dyldPath variable from TestLoadUnload.py to fixture base class (applicable in multiple cases) llvm-svn: 168612
* Dimitry Andric: When using libc++ headers on FreeBSD, in combination with ↵Howard Hinnant2012-11-263-0/+23
| | | | | | | | | | -std=c++98, -ansi or -std=c++03, the long long type is not supported. So in this case, several functions and types, like lldiv_t, strtoll(), are not declared. llvm-svn: 168610
* Remove unneeded #includes.Jakub Staszak2012-11-261-4/+0
| | | | llvm-svn: 168608
* check that always_inline attribute works with -fno-inlineSebastian Pop2012-11-261-1/+4
| | | | | | Clean up the existing test to use FileCheck. llvm-svn: 168607
* <rdar://problem/12723044> For 'process plugin packet send…', we just send ↵Han Ming Ong2012-11-261-25/+13
| | | | | | | | it async by default There is no good reason not to use async. llvm-svn: 168606
* Fix a comment bug in toascii simplifierMeador Inge2012-11-261-1/+1
| | | | | | | When I migrated the toascii simplifier in r168580 Benjamin Kramer noticed a bug in one of the comments that I migrated. llvm-svn: 168605
* instcombine: Migrate printf optimizationsMeador Inge2012-11-266-148/+224
| | | | | | | This patch migrates the printf optimizations from the simplify-libcalls pass into the instcombine library call simplifier. llvm-svn: 168604
* [analyzer] SATestBuild.py: allow make builds to disable parallelizationJordan Rose2012-11-261-1/+2
| | | | | | | | Before, SATestBuild unilaterally added '-j<n>' to every project built with 'make'. Now, we check and see if there's a -j option already specified, which allows a project to explicitly be marked '-j1'. llvm-svn: 168603
* Missing “if (log)” on a log printf.Jim Ingham2012-11-261-3/+4
| | | | llvm-svn: 168602
* Move the code that uses SCEVs prior to creating the new loops. Nadav Rotem2012-11-261-32/+35
| | | | llvm-svn: 168601
* Normalize splat 256bit vectors with 8 elements.Jakub Staszak2012-11-262-8/+8
| | | | llvm-svn: 168600
* [analyzer] Fix a crash reported in PR 14400.Anna Zaks2012-11-263-1/+8
| | | | | | | | The AllocaRegion did not have the superRegion (based on LocationContext) as part of it's hash. As a consequence, the AllocaRegions from different frames were uniqued to be the same region. llvm-svn: 168599
* MSPGCC renamed ISR vectors from vector_<address> to __isr_<number>. This ↵Anton Korobeynikov2012-11-261-2/+2
| | | | | | | | patch makes Clang reflect this scheme. Patch by Job Noorman! llvm-svn: 168598
* Decouple MCInstBuilder from the streamer per Eli's request.Benjamin Kramer2012-11-264-160/+113
| | | | llvm-svn: 168597
* Fix TestGlobalVariables.py (on Linux)Daniel Malea2012-11-261-0/+4
| | | | | | - setting LD_LIBRARY_PATH required for the test program to run correctly llvm-svn: 168595
* Remove stray trailing backslashMatt Beaumont-Gay2012-11-261-1/+1
| | | | llvm-svn: 168592
* tsan: fix lint warningsDmitry Vyukov2012-11-261-2/+2
| | | | llvm-svn: 168590
* tsan: explicitly mark symbols referenced from assembly as hiddenDmitry Vyukov2012-11-262-0/+3
| | | | | | this allows to build tsan runtime as dynamic library llvm-svn: 168589
* Rewrite test to not use a FileCheck variable and redefine it on the same line.Eli Bendersky2012-11-261-5/+5
| | | | | | | | | In preparation for the FileCheck functionality change which will allow using a variable later on the same line. No functionality change. llvm-svn: 168588
* Add MCInstBuilder, a utility class to simplify MCInst creation similar to ↵Benjamin Kramer2012-11-264-486/+443
| | | | | | | | MachineInstrBuilder. Simplify some repetitive code with it. No functionality change. llvm-svn: 168587
* [tsan] add fail order to compare_exchangeDmitry Vyukov2012-11-262-28/+52
| | | | llvm-svn: 168586
* [asan] fix Android build by not calling GetPageSizeCached in a test (no need ↵Kostya Serebryany2012-11-261-4/+3
| | | | | | for the page size anyway) llvm-svn: 168585
* tsan: add atomic nand operationDmitry Vyukov2012-11-264-0/+49
| | | | llvm-svn: 168584
* Fix PR14413 - incorrect mangling of anonymous namespaces with -cxx-abi microsoftTimur Iskhodzhanov2012-11-262-3/+10
| | | | llvm-svn: 168583
* PR14428: When instantiating a 'new' expression, if we had a non-dependentRichard Smith2012-11-263-25/+23
| | | | | | | | initialization, don't rebuild it. Remove a couple of hacks which were trying to work around this. Fix the special case for one-argument CXXConstructExprs to not apply if the one argument is a default argument. llvm-svn: 168582
* Fix a PassManager pointer use-after-free bug.Zhou Sheng2012-11-261-0/+12
| | | | | | The bug can be triggered when we require LoopInfo analysis ahead of DominatorTree construction in a Module Pass. The cause is that the LoopInfo analysis itself also invokes DominatorTree construction, therefore, when PassManager schedules LoopInfo, it will add DominatorTree first. Then after that, when the PassManger turns to schedule DominatorTree invoked by the above ModulePass, it finds there is already a DominatorTree, so it delete the redundant one. However, somehow it still try to access that pass pointer after free as code pasted below, which results in segment fault. llvm-svn: 168581
* instcombine: Migrate toascii optimizationsMeador Inge2012-11-264-47/+75
| | | | | | | This patch migrates the toascii optimizations from the simplify-libcalls pass into the instcombine library call simplifier. llvm-svn: 168580
* instcombine: Migrate isascii optimizationsMeador Inge2012-11-263-20/+49
| | | | | | | This patch migrates the isascii optimizations from the simplify-libcalls pass into the instcombine library call simplifier. llvm-svn: 168579
OpenPOWER on IntegriCloud