summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add DAG argument to canMergeStoresTo NFC.Nirav Dave2017-07-107-13/+21
| | | | llvm-svn: 307583
* [Hexagon] Convert typed ISD opcodes to generic ones, NFCKrzysztof Parzyszek2017-07-103-58/+43
| | | | llvm-svn: 307582
* Avoid doing conservative phi checks in aliasSameBasePointerGEPs() if no phis ↵Farhana Aleen2017-07-103-8/+18
| | | | | | | | | | | | have been visited yet. Reviewers: Daniel Berlin Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D34478 llvm-svn: 307581
* [Hexagon] Remove unused ISD opcodes, NFCKrzysztof Parzyszek2017-07-103-97/+0
| | | | llvm-svn: 307580
* [IslAst] Print memory accesses in AST dumpTobias Grosser2017-07-103-3/+120
| | | | | | | | | | | | | | | | | | | | When providing the option "-polly-ast-print-accesses" Polly also prints the memory accesses that are generated: #pragma known-parallel for (int c0 = 0; c0 <= 1023; c0 += 4) #pragma simd for (int c1 = c0; c1 <= c0 + 3; c1 += 1) Stmt_for_body( /* read */ &MemRef_B[0] /* write */ MemRef_A[c1] ); This makes writing and debugging memory layout transformations easier. Based on a patch contributed by Thomas Lang (ETH Zurich) llvm-svn: 307579
* Use DenseMap instead std::map for GVSummaryMapTy.Dehao Chen2017-07-102-2/+2
| | | | | | | | | | | | | | Summary: This speeds-up thin-link by ~47% for large programs. Reviewers: tejohnson Reviewed By: tejohnson Subscribers: sanjoy, llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D35148 llvm-svn: 307578
* Do not crash with missing symbolication when running in DEDUP modeGeorge Karpenkov2017-07-101-1/+2
| | | | | | | | | Printing stacktrace from ASAN crashes with a segfault in DEDUP mode when symbolication is missing. Differential Revision: https://reviews.llvm.org/D34914 llvm-svn: 307577
* AMDGPU: Allow SIShrinkInstructions to fold FrameIndexesMatt Arsenault2017-07-103-4/+167
| | | | llvm-svn: 307576
* AMDGPU: Allow SIShrinkInstructions to work in non-SSAMatt Arsenault2017-07-1069-454/+503
| | | | | | | | Immediates can be folded as long as the immediate is a vreg. Also undo commuting instructions if it didn't fold an immediate. llvm-svn: 307575
* AMDGPU: Remove unnecessary check for constant operandsMatt Arsenault2017-07-101-5/+0
| | | | | | | | | | An instruction that has an immediate operand can't reach this point. This is only called for a freshly shrunk instruction, which prevously couldn't have had a literal constant operand. This was also not conservative enough since it woudl also have had to filter other constant-like inputs like frame indexes. llvm-svn: 307574
* AMDGPU: Do not test for SI in getIsaVersionKonstantin Zhuravlyov2017-07-101-1/+1
| | | | | | SI is being tested by isa version in the first two if statements of the function. llvm-svn: 307573
* [CMake] Dependencies for tests in "runtimes"George Karpenkov2017-07-101-3/+21
| | | | | | | | | | Many of the test cases in the runtimes require LLVM's testing tools, to facilitate this working as expected we need to have all the test targets in the runtimes depend on all LLVM testing tools used in the runtimes. Differential Revision: https://reviews.llvm.org/D33048 llvm-svn: 307572
* Resubmit "Add pdb-diff test."Zachary Turner2017-07-108-147/+501
| | | | | | | | | | | | | | | | | | | | | | | | This was originally reverted because of two issues. 1) Printing ANSI color escape codes even when outputting to a file 2) Module name comparisons were failing when comparing a PDB generated on one machine to a PDB generated on another machine. I attempted to fix #2 by adding command line options which let you specify prefixes to strip from the beginning of embedded paths, which effectively lets us specify a path to "base" each PDB from and only compare the parts under the base. But this is tricky because PDB paths always use Windows path syntax, even when they are created on non-Windows hosts. A problem still existed when constructing the prefix to strip, where we were accidentally using a host-specific path separator instead of a Windows path separator. This resubmission fixes the issue on Linux (and I have verified that the test now passes on Linux). llvm-svn: 307571
* [cmake] Remove obsolete unset in CMake.George Karpenkov2017-07-101-5/+0
| | | | | | Differential Revision: https://reviews.llvm.org/D35024 llvm-svn: 307569
* [docs] Remove obsolete section in CMake documentation.George Karpenkov2017-07-101-27/+0
| | | | | | Differential Revision: https://reviews.llvm.org/D35023 llvm-svn: 307568
* Add an #if SANITIZER_MAC and a comment to lsan_common's suppression for ↵Kuba Mracek2017-07-101-3/+5
| | | | | | "_os_trace". llvm-svn: 307567
* [Hexagon] Fix check for HMOTF_ConstExtend operand flagKrzysztof Parzyszek2017-07-104-19/+38
| | | | | | This fixes https://llvm.org/PR33718. llvm-svn: 307566
* [WebAssembly] Use the correct size for MCFillFragmentSam Clegg2017-07-102-1/+15
| | | | | | | | | | | Summary: When implementing MCFillFragment, use the size of the fragment, rather than the size of the section. Patch by Dan Gohman Differential Revision: https://reviews.llvm.org/D35090 llvm-svn: 307565
* [Hexagon] Handle Hexagon-specific machine operand target flags in MIRKrzysztof Parzyszek2017-07-104-4/+99
| | | | llvm-svn: 307564
* [PPC CodeGen] Expand the bitreverse.i64 intrinsic.Tony Jiang2017-07-104-0/+281
| | | | | | | Differential Revision: https://reviews.llvm.org/D34908 Fix PR: https://bugs.llvm.org/show_bug.cgi?id=33093 llvm-svn: 307563
* [X86] Sync a few more things from llvm's Host.cpp to cpu_model.Craig Topper2017-07-101-42/+32
| | | | | | This syncs the cpuid functions and adds breaks to the appropriate spots in the CPU decoding switches. Also a few formatting tweaks. llvm-svn: 307561
* [Docs] Updating CMake docs to include LLVM_REVERSE_ITERATIONMandeep Singh Grang2017-07-101-0/+5
| | | | | | | | | | | | Reviewers: beanz, mehdi_amini Reviewed By: beanz Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D35080 llvm-svn: 307560
* Revert "Build fixes for pdb-diff test."Zachary Turner2017-07-108-501/+147
| | | | | | | | This reverts commit 180af3fdbdb17ec35b45ec1f925fd743b28d37e1. This is still breaking due to linux-specific path differences. llvm-svn: 307559
* [X86] Resync cpu_model.c with llvm's Host.cpp in preparation for making it ↵Craig Topper2017-07-101-34/+55
| | | | | | compatible with newer gcc. llvm-svn: 307558
* Fix-up for r307537: We need to #include stdint.h to get int32_t.Kuba Mracek2017-07-101-0/+1
| | | | llvm-svn: 307557
* Build fixes for pdb-diff test.Zachary Turner2017-07-101-3/+3
| | | | llvm-svn: 307556
* Fix pdb-diff test.Zachary Turner2017-07-108-147/+501
| | | | | | | | | | | | | | | | | | | | | | | | | | | A test was checked in on Friday that worked by checking in an object file and PDB generated locally by MSVC, and then having the test run lld-link on the object file and diffing LLD's PDB against the checked in PDB. This failed because part of the diffing algorithm involves determining if two modules are the same, and if so drilling into the module and diffing individual fields of the module. The only thing we can use to make this determination though is the "name" of the module, which is a path to where the module (obj file) was read from on the machine where it was linked. This fails for obvious reasons when comparing a PDB generated on one machine to a PDB on another machine. The fix employed here is to add two command line options to the diff subcommand, which allow the user to specify a "binary root path". The bin root path, if specified, is stripped from the beginning of any embedded PDB paths. The test is updated to specify the user's local test output directory for the left PDB, and is hardcoded to the location where the original PDB was created for the right PDB. This way all the equivalence comparisons should succeed. llvm-svn: 307555
* Fix invalid cast in instcombine UMul/ZExt idiomSerge Guelton2017-07-102-6/+36
| | | | | | | | | | | Fixes https://bugs.llvm.org/show_bug.cgi?id=25454 Do not assume IRBuilder creates Instruction where it can create Value. Do not assume idiom operands are constant, leave generalisation ot the IRBuilder. Differential Revision: https://reviews.llvm.org/D35114 llvm-svn: 307554
* [PowerPC] Reduce register pressure by not materializing a constant just for ↵Lei Huang2017-07-105-16/+58
| | | | | | | | | | | | | | | | | | | | | | | | use as an index register for X-Form loads/stores. For this example: float test (int *arr) { return arr[2]; } We currently generate the following code: li r4, 8 lxsiwax f0, r3, r4 xscvsxdsp f1, f0 With this patch, we will now generate: addi r3, r3, 8 lxsiwax f0, 0, r3 xscvsxdsp f1, f0 Originally reported in: https://bugs.llvm.org/show_bug.cgi?id=27204 Differential Revision: https://reviews.llvm.org/D35027 llvm-svn: 307553
* [X86] Model 256-bit AVX instructions in the AMD Jaguar scheduler Part-1 ↵Andrew V. Tischenko2017-07-104-161/+238
| | | | | | | | | | | (PR28573). The new version of the model is definitely faster. Differential Revision: https://reviews.llvm.org/D35198 llvm-svn: 307552
* Avoid white spaces in file names. NFCEric Liu2017-07-101-1/+2
| | | | | | | | | | | | Summary: White spaces in file names are causing Phabricator/SVN to crash. Reviewers: bkramer Subscribers: bogner, cfe-commits Differential Revision: https://reviews.llvm.org/D35203 llvm-svn: 307551
* [LLVM] Get rid of white spaces in file names in a DebugInfo test. NFCEric Liu2017-07-102-3/+4
| | | | | | | | | | | | Summary: White spaces in file names are causing Phabricator/SVN to crash. Reviewers: bkramer Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D35206 llvm-svn: 307550
* Fix a build failure due to r307541 (tsan_rtl_aarch64.S:54: Error: unknown ↵Kuba Mracek2017-07-101-1/+1
| | | | | | pseudo-op: `.'). llvm-svn: 307549
* [lsan] Add _os_trace into LSan's suppression listKuba Mracek2017-07-101-1/+3
| | | | | | Differential Revision: https://reviews.llvm.org/D35173 llvm-svn: 307548
* Fix-up for r307540.Kuba Mracek2017-07-101-2/+2
| | | | llvm-svn: 307547
* [DAG] Improve Aliasing of operations to static allocaNirav Dave2017-07-1024-125/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Memory accesses offset from frame indices may alias, e.g., we may merge write from function arguments passed on the stack when they are contiguous. As a result, when checking aliasing, we consider the underlying frame index's offset from the stack pointer. Static allocs are realized as stack objects in SelectionDAG, but its offset is not set until post-DAG causing DAGCombiner's alias check to consider access to static allocas to frequently alias. Modify isAlias to consider access between static allocas and access from other frame objects to be considered aliasing. Many test changes are included here. Most are fixes for tests which indirectly relied on our aliasing ability and needed to be modified to preserve their original intent. The remaining tests have minor improvements due to relaxed ordering. The exception is CodeGen/X86/2011-10-19-widen_vselect.ll which has a minor degradation dispite though the pre-legalized DAG is improved. Reviewers: rnk, mkuper, jonpa, hfinkel, uweigand Reviewed By: rnk Subscribers: sdardis, nemanjai, javed.absar, llvm-commits Differential Revision: https://reviews.llvm.org/D33345 llvm-svn: 307546
* [tsan] Add comments for the bool argument of ↵Kuba Mracek2017-07-102-9/+9
| | | | | | | | ThreadIgnoreBegin/ThreadIgnoreSyncBegin, NFC. Differential Revision: https://reviews.llvm.org/D35134 llvm-svn: 307545
* [tsan] Add a mapping for Darwin/AArch64Kuba Mracek2017-07-103-9/+50
| | | | | | | | This patch defines the TSan memory map and offsets for Darwin on AArch64. Differential Revision: https://reviews.llvm.org/D35147 llvm-svn: 307544
* Use emplace_back to replace size() and resize().Dehao Chen2017-07-101-1/+1
| | | | | | | | | | | | | | Summary: This speeds-up thin-link for ~29% for large programs. Reviewers: tejohnson Reviewed By: tejohnson Subscribers: grandinj, sanjoy, llvm-commits Differential Revision: https://reviews.llvm.org/D35145 llvm-svn: 307543
* [LoopUnrollRuntime] Remove strict assert about VMap requirementAnna Thomas2017-07-102-5/+45
| | | | | | | | | | | | | When unrolling under multiple exits which is under off-by-default option, the assert that checks for VMap entry in loop exit values is too strong. (assert if VMap entry did not exist, the value should be a constant). However, values derived from constants or from values outside loop, does not have a VMap entry too. Removed the assert and added a testcase showcasing the property for non-constant values. llvm-svn: 307542
* [tsan] Port setjmp/longjmp assembly to Darwin/AArch64Kuba Mracek2017-07-104-26/+117
| | | | | | | | This patch ports the assembly file implementing TSan's setjmp support to AArch64 on Darwin. Differential Revision: https://reviews.llvm.org/D35143 llvm-svn: 307541
* [tsan] Add a max VM address check for Darwin/AArch64Kuba Mracek2017-07-101-0/+8
| | | | | | Differential Revision: https://reviews.llvm.org/D35154 llvm-svn: 307540
* Reverting an accidentally landed change.Kuba Mracek2017-07-101-1/+0
| | | | llvm-svn: 307539
* Fixup whitespace.Kuba Mracek2017-07-101-1/+1
| | | | llvm-svn: 307538
* [tsan] Add support for running TSan tests on iOS simulator and devicesKuba Mracek2017-07-1012-8/+72
| | | | | | Differential Revision: https://reviews.llvm.org/D35157 llvm-svn: 307537
* [PM] Fix a warning.Philip Pfaffe2017-07-101-6/+6
| | | | | | The DebugLogging argument was unused in the EP callbacks registration. llvm-svn: 307536
* Improve error message when run from a buffer that doesn't visit a filePhilipp Stephani2017-07-101-0/+2
| | | | | | | | | | | | Summary: In this case, users currently get a confusing type error. Make the error message more obvious. Reviewers: klimek Reviewed By: klimek Differential Revision: https://reviews.llvm.org/D35197 llvm-svn: 307535
* [PM] Fix r307532: Get rid of a dangling reference.Philip Pfaffe2017-07-101-22/+24
| | | | | | | Escaping lambda by-reference capture of local variable caused a dangling reference. llvm-svn: 307534
* fix typos in comments and error messages; NFCHiroshi Inoue2017-07-105-8/+8
| | | | llvm-svn: 307533
* [PM] Enable registration of out-of-tree passes with PassBuilderPhilip Pfaffe2017-07-107-50/+1106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch adds a callback registration API to the PassBuilder, enabling registering out-of-tree passes with it. Through the Callback API, callers may register callbacks with the various stages at which passes are added into pass managers, including parsing of a pass pipeline as well as at extension points within the default -O pipelines. Registering utilities like `require<>` and `invalidate<>` needs to be handled manually by the caller, but a helper is provided. Additionally, adding passes at pipeline extension points is exposed through the opt tool. This patch adds a `-passes-ep-X` commandline option for every extension point X, which opt parses into pipelines inserted into that extension point. Reviewers: chandlerc Reviewed By: chandlerc Subscribers: lksbhm, grosser, davide, mehdi_amini, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D33464 llvm-svn: 307532
OpenPOWER on IntegriCloud