summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [AMDGPU] Fixed occupancy calculation for gfx10Stanislav Mekhanoshin2019-07-199-36/+42
| | | | | | Differential Revision: https://reviews.llvm.org/D65010 llvm-svn: 366616
* Revert r366610 and r366612: Expand pseudo-components before embedding in ↵Daniel Sanders2019-07-193-88/+71
| | | | | | | | | | llvm-config Some targets are missing LLVMDemangle, one is adding the LLVM prefix twice, and two are hitting the very error this patch fixes for my target. Reverting while I work through the reports. llvm-svn: 366615
* [InstCombine] Fix copy/paste mistake in the test cases I added for PR42691. NFCCraig Topper2019-07-191-3/+5
| | | | llvm-svn: 366614
* AMDGPU: Avoid custom predicates for stores with glueMatt Arsenault2019-07-191-18/+24
| | | | llvm-svn: 366613
* Fix a latent bug discovered by r366610: nativecodegen includes X86CodeGen ↵Daniel Sanders2019-07-191-1/+3
| | | | | | | | | | | | when X86 is not compiled I believe this to have been a latent bug as the same expansion checks for the existence of ${native_tgt}Info and ${native_tgt}Desc and only adds them if they were compiled but unconditionally adds ${native_tgt}CodeGen. This should fix llvm-clang-x86_64-win-fast which builds ARM only on an X86 host and similar builders. llvm-svn: 366612
* [InstCombine] Add test cases for PR42691. NFCCraig Topper2019-07-191-0/+83
| | | | llvm-svn: 366611
* Expand pseudo-components before embedding in llvm-configDaniel Sanders2019-07-193-71/+86
| | | | | | | | | | | | | | | | | | | | Summary: If you use pseudo-targets like AllTargetsCodeGens in LLVM_DYLIB_COMPONENTS then a test will fail because `./bin/llvm-config --shared-mode` can't handle these targets. We can fix this by expanding them before embedding the string into llvm-config Reviewers: bogner Reviewed By: bogner Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65011 llvm-svn: 366610
* AMDGPU: Redefine setcc condition PatLeafsMatt Arsenault2019-07-193-67/+36
| | | | | | Avoid using custom code predicates. llvm-svn: 366609
* AMDGPU: Don't rely on m0 being -1 for GWS offsetsMatt Arsenault2019-07-197-43/+76
| | | | | | | This only works if the high bits of m0 are also 0, so m0 would have to be set to 0xffff. llvm-svn: 366608
* AMDGPU: Force s_waitcnt after GWS instructionsMatt Arsenault2019-07-196-9/+52
| | | | | | | This is apparently required to be the immediately following instruction, so force it into a bundle with a waitcnt. llvm-svn: 366607
* [libc++] Mark libcpp_deallocate.sh.cpp as UNSUPPORTED instead of XFAIL on ↵Louis Dionne2019-07-191-1/+1
| | | | | | | | | | AppleClang 9 Some minor versions of AppleClang 9 appear not to fail the test. It's such a mess that the only sane thing to do is to mark the test as UNSUPPORTED. llvm-svn: 366606
* LiveIntervals: Fix handleMove asserting on BUNDLEMatt Arsenault2019-07-192-1/+56
| | | | | | | | | The top-level BUNDLE instruction should behave as an ordinary instruction. It is supposed to have all relevant registers as implicit operands. Moving it should work as any other instruction. I believe the assert intended to avoid moving instructions inside bundles. llvm-svn: 366605
* Revert "[libc++] Integrate the PSTL into libc++"Louis Dionne2019-07-1917-73/+1
| | | | | | | This reverts r366593, which caused unforeseen breakage on the build bots. I'm reverting until the problems have been figured out and fixed. llvm-svn: 366603
* [AMDGPU] Add test case on crashing of `si-lower-sgpr-spills` passMichael Liao2019-07-191-0/+20
| | | | | | | | | | | | Reviewers: arsenm Subscribers: qcolombet, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64273 llvm-svn: 366602
* [libc++] Allow passing additional CMake arguments in macOS trunk CI scriptLouis Dionne2019-07-191-1/+9
| | | | llvm-svn: 366601
* Revert "Use the MachineBasicBlock symbol for a callbr target"Nick Desaulniers2019-07-193-34/+10
| | | | | | | | | | | This reverts commit r366523/ccbffefccaff42b0d094c9ef0f49fc3e8c8456ea. Two regressions were immediately reported: - https://github.com/ClangBuiltLinux/linux/issues/614 - https://github.com/ClangBuiltLinux/linux/issues/615 Reported-by: nathanchance llvm-svn: 366600
* [RISCV] Disable tests failing on buildbots.Matt Morehouse2019-07-192-0/+2
| | | | | | r366399 enabled a couple tests that are failing on a few buildbots. llvm-svn: 366599
* [AMDGPU] Allow register tuples to set asm namesStanislav Mekhanoshin2019-07-196-143/+119
| | | | | | | | | | | | This change reverts most of the previous register name generation. The real problem is that RegisterTuple does not generate asm names. Added optional operand to RegisterTuple. This way we can simplify register name access and dramatically reduce the size of static tables for the backend. Differential Revision: https://reviews.llvm.org/D64967 llvm-svn: 366598
* AMDGPU/GlobalISel: Fix MMO flags for kernel argument loadsMatt Arsenault2019-07-192-115/+115
| | | | | | The DAG lowering sets dereferencable and invariant, not nontemporal. llvm-svn: 366597
* GlobalISel: Add GINodeEquiv for fcopysignMatt Arsenault2019-07-191-0/+1
| | | | | | I don't need this at the moment, but it should be here. llvm-svn: 366596
* [llvm-lipo] Remove trailing whitespace. NFCShoaib Meenai2019-07-196-41/+41
| | | | llvm-svn: 366595
* [libc++] Use _EnableIf instead of std::enable_if in deduction guides for map ↵Louis Dionne2019-07-192-24/+24
| | | | | | and set llvm-svn: 366594
* [libc++] Integrate the PSTL into libc++Louis Dionne2019-07-1917-1/+73
| | | | | | | | | | | | | | | | | | | | | | Summary: This commit allows specifying LIBCXX_ENABLE_PARALLEL_ALGORITHMS when configuring libc++ in CMake. When that option is enabled, libc++ will assume that the PSTL can be found somewhere on the CMake module path, and it will provide the C++17 parallel algorithms based on the PSTL (that is assumed to be available). The commit also adds support for running the PSTL tests as part of the libc++ test suite. Reviewers: rodgert, EricWF Subscribers: mgorny, christof, jkorous, dexonsmith, libcxx-commits, mclow.lists, EricWF Tags: #libc Differential Revision: https://reviews.llvm.org/D60480 llvm-svn: 366593
* [Format/ObjC] Avoid breaking between unary operators and operandsBen Hamilton2019-07-192-0/+14
| | | | | | | | | | | | | | | | | | | | Summary: Test Plan: New tests added. Ran tests with: % ninja FormatTests && ./tools/clang/unittests/Format/FormatTests Confirmed tests failed before change and passed after change. Reviewers: krasimir, djasper, sammccall, klimek Reviewed By: sammccall Subscribers: klimek, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64775 llvm-svn: 366592
* AMDGPU: Add some function return test casesMatt Arsenault2019-07-191-0/+20
| | | | llvm-svn: 366591
* [lldb][NFC] Cleanup mentions and code related to lldb-miRaphael Isemann2019-07-19117-15114/+1
| | | | | | | | | | | | | | | | Summary: lldb-mi has been removed, but there are still a bunch of references in the code base. This patch removes all of them. Reviewers: JDevlieghere, jfb Reviewed By: JDevlieghere Subscribers: dexonsmith, ki.stfu, mgorny, abidh, jfb, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D64992 llvm-svn: 366590
* [AMDGPU] Regenerate test file for upcoming patch. NFCI.Simon Pilgrim2019-07-191-42/+482
| | | | llvm-svn: 366589
* Fix asan infinite loop on undefined symbolSerge Guelton2019-07-192-2/+49
| | | | | | | | | | Fix llvm#39641 Recommit of r366413 Differential Revision: https://reviews.llvm.org/D63877 llvm-svn: 366588
* [libunwind][ARM] Fix loading FP registers on big-endian targetsMikhail Maltsev2019-07-191-2/+7
| | | | | | | | | | | | | | | | | | | | Summary: The function Unwind-EHABI.cpp:_Unwind_VRS_Pop loads the saved values of 64-bit FP registers as two 32-bit words because they might not be 8-byte aligned. Combining these words into a 64-bit value has to be done differently on big-endian platforms. Reviewers: ostannard, john.brawn, dmgreen Reviewed By: ostannard Subscribers: kristof.beyls, christof, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D64996 llvm-svn: 366587
* AMDGPU: Attempt to fix bot errorMatt Arsenault2019-07-191-1/+1
| | | | | | | Manually remove file name from check line, since it somehow ends up being different on an msvc bot. llvm-svn: 366586
* AMDGPU/GlobalISel: Selection for fminnum/fmaxnumMatt Arsenault2019-07-1910-253/+1238
| | | | | | | v2f16 case doesn't work yet because the VOP3P complex patterns haven't been ported yet. llvm-svn: 366585
* AMDGPU/GlobalISel: Support arguments with multiple registersMatt Arsenault2019-07-194-42/+89
| | | | | | Handles structs used directly in argument lists. llvm-svn: 366584
* AMDGPU/GlobalISel: Rewrite lowerFormalArgumentsMatt Arsenault2019-07-196-207/+2368
| | | | | | | | | | | | | | | | | This should now handle everything except structs passed as multiple registers. I think most of the packing logic should be handled by handleAssignments, but I'm unclear on what the contract is for multiple registers. This is copying how x86 handles this. This does change the behavior of the test_sgpr_alignment0 amdgpu_vs test. I don't think shader arguments should try to follow the alignment, and registers need to be repacked. I also don't think it matters, since I think the pointers are packed to the beginning of the argument list anyway. llvm-svn: 366582
* Support Linux signal return trampolines in frame initializationJoseph Tremoulet2019-07-1928-12/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add __kernel_rt_sigreturn to the list of trap handlers for Linux (it's used as such on aarch64 at least), and __restore_rt as well (used on x86_64). Skip decrement-and-recompute for trap handlers in InitializeNonZerothFrame, as signal dispatch may point the child frame's return address to the start of the return trampoline. Parse the 'S' flag for signal handlers from eh_frame augmentation, and propagate it to the unwind plan. Reviewers: labath, jankratochvil, compnerd, jfb, jasonmolenda Reviewed By: jasonmolenda Subscribers: clayborg, MaskRay, wuzish, nemanjai, kbarton, jrtc27, atanasyan, jsji, javed.absar, kristof.beyls, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D63667 llvm-svn: 366580
* [libc++] Add missing %link_flags to .sh.cpp testLouis Dionne2019-07-191-1/+1
| | | | | | | Without the link flags, the test always fails on Linux. For some reason, however, it works on Darwin -- which is why it wasn't caught at first. llvm-svn: 366579
* AMDGPU: Decompose all values to 32-bit pieces for calling conventionsMatt Arsenault2019-07-1914-298/+234
| | | | | | | | | | This is the more natural lowering, and presents more opportunities to reduce 64-bit ops to 32-bit. This should also help avoid issues graphics shaders have had with 64-bit values, and simplify argument lowering in globalisel. llvm-svn: 366578
* [clangd] Provide a way to publish highlightings in non-racy mannerIlya Biryukov2019-07-194-47/+77
| | | | | | | | | | | | | | | | | | Summary: By exposing a callback that can guard code publishing results of 'onMainAST' callback in the same manner we guard diagnostics. Reviewers: sammccall Reviewed By: sammccall Subscribers: javed.absar, MaskRay, jkorous, arphaman, kadircet, hokein, jvikstrom, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64985 llvm-svn: 366577
* gn build: Set +x on symlink_or_copy.pyNico Weber2019-07-191-0/+0
| | | | llvm-svn: 366576
* [clangd] Disable background-index on lit-tests by defaultKadir Cetinkaya2019-07-191-1/+5
| | | | | | | | | | | | | | | | Summary: Since background-index can perform disk writes, we don't want to turn it on tests that won't clear it. Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64990 llvm-svn: 366575
* DAG: Handle dbg_value for arguments split into multiple subregsMatt Arsenault2019-07-192-23/+279
| | | | | | | | This was handled previously for arguments split due to not fitting in an MVT. This was dropping the register for argument registers split due to TLI::getRegisterTypeForCallingConv. llvm-svn: 366574
* lld-link: Demangle symbols from archives in diagnosticsNico Weber2019-07-1910-24/+71
| | | | | | | | | Also add test coverage for thin archives (which are the only way I could come up with to test at least some of the diagnostic changes). Differential Revision: https://reviews.llvm.org/D64927 llvm-svn: 366573
* [NFC] include cstdint/string prior to using uint8_t/stringThan McIntosh2019-07-191-0/+2
| | | | | | | | | | | | | | | Summary: include proper header prior to use of uint8_t typedef and std::string. Subscribers: llvm-commits Reviewers: cherry Tags: #llvm Differential Revision: https://reviews.llvm.org/D64937 llvm-svn: 366572
* [AMDGPU][MC] Corrected parsing of branch offsetsDmitry Preobrazhensky2019-07-195-23/+83
| | | | | | | | | | See bug 40820: https://bugs.llvm.org/show_bug.cgi?id=40820 Reviewers: artem.tamazov, arsenm Differential Revision: https://reviews.llvm.org/D64629 llvm-svn: 366571
* [MachineCSE][MachinePRE] Avoid hoisting code from code regions into hot BBs.Kai Luo2019-07-195-43/+70
| | | | | | | | | | | | Summary: Current PRE hoists common computations into CMBB = DT->findNearestCommonDominator(MBB, MBB1). However, if CMBB is in a hot loop body, we might get performance degradation. Differential Revision: https://reviews.llvm.org/D64394 llvm-svn: 366570
* [X86] for split stack, not save/restore nested arg if unusedThan McIntosh2019-07-192-2/+41
| | | | | | | | | | | | | | | | | Summary: For split-stack, if the nested argument (i.e. R10) is not used, no need to save/restore it in the prologue. Reviewers: thanm Reviewed By: thanm Subscribers: mstorsjo, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64673 llvm-svn: 366569
* [Clangd] Fixed ExtractVariable testShaurya Gupta2019-07-191-9/+15
| | | | llvm-svn: 366568
* [libc++] Fix link error with _LIBCPP_HIDE_FROM_ABI_PER_TU and std::stringLouis Dionne2019-07-192-10/+21
| | | | | | | | | | | | | | | | | | | | | Summary: This is effectively a revert of r344616, which was a partial fix for PR38964 (compilation of <string> with GCC in C++03 mode). However, that configuration is explicitly not supported anymore and that partial fix breaks compilation with Clang when per-TU insulation is provided. PR42676 rdar://52899715 Reviewers: mclow.lists, EricWF Subscribers: christof, jkorous, dexonsmith, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D64941 llvm-svn: 366567
* [Clangd] Fixed SelectionTree bug for macrosShaurya Gupta2019-07-193-26/+45
| | | | | | | | | | | | | | | | | | Summary: Fixed SelectionTree bug for macros - Fixed SelectionTree claimRange for macros and template instantiations - Fixed SelectionTree unit tests - Changed a breaking test in TweakTests Reviewers: sammccall, kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D64329 llvm-svn: 366566
* [NFC][InstCombine] Tests for 'rem' formation from sub-of-mul-by-'div' (PR42673)Roman Lebedev2019-07-192-0/+234
| | | | | | | https://rise4fun.com/Alive/8Rp https://bugs.llvm.org/show_bug.cgi?id=42673 llvm-svn: 366565
* [NFC][InstCombine] Redundant masking before left-shift: tests with assumeRoman Lebedev2019-07-194-22/+130
| | | | | | | | | | | | | | If the legality check is `(shiftNbits-maskNbits) s>= 0`, then we can simplify it to `shiftNbits u>= maskNbits`, which is easier to check for. However, currently switching the `dropRedundantMaskingOfLeftShiftInput()` to `SimplifyICmpInst()` does not catch these cases and regresses currently-handled cases, so i'll leave it as is for now. https://rise4fun.com/Alive/25P llvm-svn: 366564
OpenPOWER on IntegriCloud