summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [X86][ADX] Added memory folding patterns and stack folding testsSimon Pilgrim2015-12-052-0/+51
| | | | llvm-svn: 254844
* Replace uint16_t with the MCPhysReg typedef in many places. A lot of ↵Craig Topper2015-12-0521-96/+98
| | | | | | physical register arrays already use this typedef. llvm-svn: 254843
* Use std::fill instead of memset to initialize an array to avoid hardcoded ↵Craig Topper2015-12-051-1/+1
| | | | | | count and a multiply. The outputed code is identical. llvm-svn: 254842
* [X86][FMA4] Explicitly set the domain of FMA4 float/double scalar instructionsSimon Pilgrim2015-12-052-30/+33
| | | | | | Both were defaulting to the float domain - now matches the packed instructions. llvm-svn: 254841
* [ELF/AArch64] Allow only valid dynamic relocations in the output.Igor Kudrin2015-12-0518-55/+167
| | | | | | | | | All relocations, which cannot be handled by the dynamic linker, cause a linking error "rebuild with -fPIC". Differential revision: http://reviews.llvm.org/D15193 llvm-svn: 254840
* Pass profile version info to name API (NFC)Xinliang David Li2015-12-051-1/+4
| | | | llvm-svn: 254839
* [PGO] Add version to getPGOFuncName methodXinliang David Li2015-12-053-7/+15
| | | | | | | | | Different version of indexed format may use different name uniquing schemes for static functions. Pass the version info to the name interface so that different schmes can be picked (for profile lookup). llvm-svn: 254838
* Normalize successors' probabilities when building MBBs for jump table.Cong Hou2015-12-052-1/+3
| | | | llvm-svn: 254837
* [llvm-dwp] Add coverage for both the presence and absence of type units, and ↵David Blaikie2015-12-054-28/+42
| | | | | | fix/remove the emission of a broken tu_index when no type units are present llvm-svn: 254833
* Use macro for common code pattern (NFC)Xinliang David Li2015-12-051-9/+15
| | | | llvm-svn: 254831
* [llvm-dwp] Fix the type_units.test since I renamed its inputs as wellDavid Blaikie2015-12-051-1/+1
| | | | llvm-svn: 254830
* [llvm-dwp] Rename the sufficiently-modified test to reflect it's non-simplicityDavid Blaikie2015-12-055-0/+0
| | | | llvm-svn: 254829
* [llvm-dwp] clang-format this to catch anything I've missed along the wayDavid Blaikie2015-12-051-12/+13
| | | | llvm-svn: 254828
* [llvm-dwp] Support debug_tu_indexDavid Blaikie2015-12-056-66/+160
| | | | llvm-svn: 254827
* [WebAssembly] Implement ReverseBranchCondition, and re-enable ↵Dan Gohman2015-12-0510-45/+321
| | | | | | | | | | | | | MachineBlockPlacement This patch introduces a codegen-only instruction currently named br_unless, which makes it convenient to implement ReverseBranchCondition and re-enable the MachineBlockPlacement pass. Then in a late pass, it lowers br_unless back into br_if. Differential Revision: http://reviews.llvm.org/D14995 llvm-svn: 254826
* [libFuzzer] one more trophieKostya Serebryany2015-12-051-0/+2
| | | | llvm-svn: 254825
* [libFuzzer] don't reload the corpus more than once every secondKostya Serebryany2015-12-051-1/+6
| | | | llvm-svn: 254824
* Revert "[x86] Exclusion of incorrect include headers paths for MCU target"Reid Kleckner2015-12-052-57/+20
| | | | | | | | | | This reverts commit r254195. From the description, I suspect that the wrong patch was committed here, and this is causing assertion failures in EmitDeferred() when the global value ends up being a bitcast of a global. llvm-svn: 254823
* Whitespace.Lang Hames2015-12-051-2/+2
| | | | llvm-svn: 254821
* [opt] Fix run-twice option for non-idempotent passesKeno Fischer2015-12-051-7/+11
| | | | | | | | | | Cloning the module was supposed to guard against the possibility that the passes may be non-idempotent. However, for some reason I decided to put that AFTER the passes had already run on the module, defeating the point entirely. Fix that by moving up the CloneModule as is done in llc. llvm-svn: 254819
* [CMake] Add COMPILER_RT_TSAN_DEBUG_OUTPUT option.Alexey Samsonov2015-12-051-0/+7
| | | | | | | | | This option builds TSan runtime with extra debug printfs and stats collection. This build configuration is developer-only and should rarely be used, but we need to keep it to make sure it doesn't bitrot. llvm-svn: 254818
* [WebAssembly] Remove an obsolete TODO comment.Dan Gohman2015-12-051-1/+0
| | | | llvm-svn: 254817
* [MC] Add a test for state reset in MCMachOStreamerKeno Fischer2015-12-051-0/+12
| | | | | | | | This was fixed in r254751, but untestable until r254774, which added the necessary command line flag to llc. Add a test now to make sure this doesn't regress again. llvm-svn: 254814
* Fix a typo in LoopVectorize.cpp. NFC.Cong Hou2015-12-051-1/+1
| | | | llvm-svn: 254813
* [WebAssembly] Fix scheduling dependencies in register-stackified codeDan Gohman2015-12-053-13/+74
| | | | | | | | | | | Add physical register defs to instructions used from stackified instructions to prevent them from being scheduled into the middle of a stack sequence. This is a conservative measure which may be loosened in the future. Differential Revision: http://reviews.llvm.org/D15252 llvm-svn: 254811
* CodeGen: Let the BumpPtrAllocator free the elements of indexListJustin Bogner2015-12-051-0/+5
| | | | | | | | The indexList's nodes are all allocated on a BumpPtrAllocator, so it's more efficient to let them be freed when it goes away, rather than deleting them directly. This is a follow up to r254794. llvm-svn: 254808
* [WebAssembly] Support constant offsets on loads and storesDerek Schuff2015-12-0511-117/+128
| | | | | | | | | This is just prototype for load/store for i32 types. I'll add them to the rest of the types if we like this direction. Differential Revision: http://reviews.llvm.org/D15197 llvm-svn: 254807
* [analyzer] Fix MemRegion crash casting non-struct to derived struct (PR25426).Devin Coughlin2015-12-052-13/+27
| | | | | | | | | | This commit prevents MemRegion::getAsOffset() from crashing when the analyzed program casts a symbolic region of a non-record type to some derived type and then attempts to access a field of the base type. rdar://problem/23458069 llvm-svn: 254806
* [EarlyCSE] IsSimple vs IsVolatile naming clarification (NFC)Philip Reames2015-12-053-15/+17
| | | | | | | | | | | | When the notion of target specific memory intrinsics was introduced to EarlyCSE, the commit confused the notions of volatile and simple memory access. Since I'm about to start working on this area, cleanup the naming so that patches aren't horribly confusing. Note that the actual implementation was always bailing if the load or store wasn't simple. Reminder: - "volatile" - C++ volatile, can't remove any memory operations, but in principal unordered - "ordered" - imposes ordering constraints on other nearby memory operations - "atomic" - can't be split or sheared. In LLVM terms, all "ordered" operations are also atomic so the predicate "isAtomic" is often used. - "simple" - a load which is none of the above. These are normal loads and what most of the optimizer works with. llvm-svn: 254805
* [opt] Fix sanitizer complaints about r254774Keno Fischer2015-12-051-5/+8
| | | | | | | | `Out` can be null if no output is requested, so move any access to it inside the conditional. Thanks to Justin Bogner for finding this. llvm-svn: 254804
* [PassManager] Ensure destructors of cached AnalysisUsage objects are runPhilip Reames2015-12-042-2/+2
| | | | | | In 254760, I introduced the usage of a BumpPtrAllocator for the AnalysisUsage instances held by the PassManger. This turns out to have been incorrect since a BumpPtrAllocator does not run the destructors of objects when deallocating memory. Since a few of our SmallVector's had grown beyond their small size, we end up with some leaked memory. We need to use a SpecificBumpPtrAllocator instead. llvm-svn: 254803
* [ThinLTO] Helper for performing renaming/promotion on a moduleTeresa Johnson2015-12-042-0/+19
| | | | | | | | | Creates a module and performs necessary renaming/promotion of locals that may be exported to another module. Split out of D15024. llvm-svn: 254802
* Add FeatureLAHFSAHF to amdfam10 as well.Hans Wennborg2015-12-041-1/+1
| | | | llvm-svn: 254801
* [WebAssembly] Initial varargs support.Dan Gohman2015-12-048-18/+230
| | | | | | | | | Full varargs support will depend on prologue/epilogue support, but this patch gets us started with most of the basic infrastructure. Differential Revision: http://reviews.llvm.org/D15231 llvm-svn: 254799
* [Docs] One more cleanup of -fsanitize= section.Alexey Samsonov2015-12-042-18/+17
| | | | | | | Describe -fsanitize-blacklist flags in separate paragraphs, move notes about importance of clang++ for vptr down to UBSan docs. llvm-svn: 254798
* [CMake] Don't build the libclang tests unless you're building libclangChris Bieneman2015-12-041-1/+1
| | | | | | This fixes a build issue reported by users at Apple. llvm-svn: 254797
* COFF: Create a PDB file with the correct file signature.Rui Ueyama2015-12-044-1/+35
| | | | | | | | | | | | | | | | | Before this patch, we created an empty PDB file if /debug option is specified. For MSVC linker, such PDB file is completely broken, and linker exits without doing anything as soon as it finds an empty PDB file. A PDB file created in this patch has the correct file signature. MSVC linker still thinks that the file is broken, but it then removes and replaces with its output. This is an initial patch to support PDB in LLD. We aim to support PDB in order to make it 100% compatible with MSVC linker. PDB support is the last missing piece. llvm-svn: 254796
* Address a memory leak in 254760Philip Reames2015-12-041-3/+6
| | | | | | The issue appears to have been that the copy constructor of the SmallVector was being invoked and this was somehow leading to leaked memory. This patch avoids the symptom, but likely doesn't address the underlying problem. I'm still investigating the root cause, but wanted to avoid the memory leak in the mean time. Even with the underlying fix, avoiding the redundant allocation is worthwhile. llvm-svn: 254795
* CodeGen: Move the SlotIndexes BumpPtrAllocator before the list it allocatesJustin Bogner2015-12-041-3/+2
| | | | | | | | | | | | | | | | | | | | | When a `SlotIndexes` is destroyed, `ileAllocator` will currently be destructed before `IndexList`, but all of `IndexList`'s storage has been allocated by `ileAllocator`. This means we'll call destructors on garbage data, which is very bad. This can be avoided by putting the BumpPtrAllocator earlier in the class than anything it allocates. Unfortunately, I don't know how to test this. It depends very much on memory layout, and the only evidence I have that this is actually happening in practice are backtraces that might be explained by this. By inspection though, the code is obviously dangerous/wrong, and this is the right thing to do. I'll follow up later with a patch that calls clearAndLeakNodesUnsafely on the list, since there isn't much point in destructing them when they're allocated in a BPA anyway, but I figured it makes sense to commit the correctness fix separately from that optimization. llvm-svn: 254794
* X86: Don't emit SAHF/LAHF for 64-bit targets unless explicitly supportedHans Wennborg2015-12-048-49/+136
| | | | | | | | | | | | | | | These instructions are not supported by all CPUs in 64-bit mode. Emitting them causes Chromium to crash on start-up for users with such chips. (GCC puts these instructions behind -msahf on 64-bit for the same reason.) This patch adds FeatureLAHFSAHF, enables it by default for 32-bit targets and modern CPUs, and changes X86InstrInfo::copyPhysReg back to the lowering from before r244503 when the instructions are not available. Differential Revision: http://reviews.llvm.org/D15240 llvm-svn: 254793
* Make TestThreadSpecificBreakpoint.py more focused.Zachary Turner2015-12-045-53/+143
| | | | | | | | | | | | | | | | This test would fail before if conditional breakpoints weren't working correctly, and the nature of the test (spinning up 10 threads, etc) opens the door to raciness. This patch vastly simplifies the test, removes the need for relying on conditional expression evaluation, and as a result makes the correctness of the test vastly easier to reason about and reduces flakiness. Differential Revision: http://reviews.llvm.org/D15241 Reviewed By: Jim Ingham llvm-svn: 254792
* Python 3 - Fix script import --allow-reload.Zachary Turner2015-12-041-3/+8
| | | | | | | Differential Revision: http://reviews.llvm.org/D15209 Reviewed By: Todd Fiala llvm-svn: 254791
* Make it clear how you would get the pointee out of an SBValue withJim Ingham2015-12-042-1/+10
| | | | | | GetType().IsPointerType() returns true. llvm-svn: 254790
* Check multilib dir for asan_device_setup.Dan Albert2015-12-041-2/+7
| | | | | | | | | | Reviewers: eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D15247 llvm-svn: 254789
* [Docs] Update MSan docsAlexey Samsonov2015-12-042-48/+35
| | | | | | | | | | | | | | Summary: 1. Move MSan-specific flags and features from user manual to MSan page. 2. Update current status / list of supported platforms. Reviewers: eugenis, kcc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D15246 llvm-svn: 254788
* Reduce memory traffic in ConstString in the std::map formatterEnrico Granata2015-12-041-6/+14
| | | | llvm-svn: 254787
* Add TransformUtils to list of required libraries for llcDerek Schuff2015-12-043-2/+3
| | | | | | This dependency was added in r254774 llvm-svn: 254786
* Added coverage check for extensionless headers, and exclude hidden dot ↵John Thompson2015-12-045-2/+13
| | | | | | directoryies. llvm-svn: 254785
* [libFuzzer] compute base64 in-process instead of using an external lib. ↵Kostya Serebryany2015-12-045-10/+45
| | | | | | Since libFuzzer should not depend on anything, just re-implement base64 encoder. PR25746 llvm-svn: 254784
* [asan] Remove the use of system properties on Android.Evgeniy Stepanov2015-12-044-24/+0
| | | | | | | | | | | | | System properties are not accessible through NDK (we've been using hacks to get to them) and they are unavailable during ASan initialization in .preinit_array. Use environment variables and files instead (ex. ASAN_OPTIONS=include_if_exists=/path). No test changes. This feature was not tested because the properties are system-wide and would conflict with the parallel test runner. Yet another reason to get rid of it. llvm-svn: 254783
OpenPOWER on IntegriCloud