- May 29, 2020
-
-
David Green authored
-
Vedant Kumar authored
Summary: We received a report of LiveDebugValues consuming 25GB+ of RAM when compiling code generated by Unity's IL2CPP scripting backend. There's an initial 5GB spike due to repeatedly copying cached lists of MachineBasicBlocks within the UserValueScopes members of VarLocs. But the larger scaling issue arises due to the fact that prior to range extension, there are 81K basic blocks and 156K DBG_VALUEs: given enough memory, LiveDebugValues would insert 101 million MIs (I counted this by incrementing a counter inside of VarLoc::BuildDbgValue). It seems like LiveDebugValues would have to be rearchitected to support this kind of input (we'd need some new represntation for DBG_VALUEs that get inserted into ~every block via flushPendingLocs). OTOH, large globs of auto-generated code are typically not debugged interactively. So: add cutoffs to disable range extension when the input is too big. I chose the cutoffs experimentally, erring on the conservative side. When compiling a large collection of Apple software, range extension never got disabled. rdar://63418929 Reviewers: aprantl, friss, jmorse, Orlando Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80662
-
Vedant Kumar authored
Summary: Verify that each DBG_VALUE has a debug location. This is required by LiveDebugValues, and perhaps by other late passes. There's an exception for tests: lots of tests use a two-operand form of DBG_VALUE for convenience. There's no reason to prevent that. This is an extension of D80665, but there's no dependency. Reviewers: aprantl, jmorse, davide, chrisjackson Subscribers: hiraditya, asb, rbar, johnrusso, simoncook, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, Jim, lenary, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80670
-
Vedant Kumar authored
Summary: Assert that MachineLICM does not move a debug instruction and then drop its debug location. Later passes require each debug instruction to have a location. Testing: check-llvm, clang stage2 RelWithDebInfo build (x86_64) Reviewers: aprantl, davide, chrisjackson, jmorse Subscribers: hiraditya, asbirlea, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80665
-
Philip Reames authored
Mechanical movement, nothing more.
-
Philip Reames authored
These are the two operand sets which are expected to survive more than another week or so. Instead of bothering to update the deopt and gc-transition operands, we'll just wait until those are removed and delete the code. For those following along, this is likely to be the last (major) change in this sequence for about a week. I want to wait until all of this has been merged downstream to ensure I haven't introduced any bugs (and migrate some downstream code to the new interfaces). Once that's done, we should be able to delete Statepoint/ImmutableStatepoint without too much work.
-
Philip Reames authored
-
Nemanja Ivanovic authored
The headers provided with recent GNU toolchains for PPC have code that includes typedefs such as: typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__KC__))) This patch allows clang to compile programs that contain #include <math.h> with -mfloat128 which it currently fails to compile. Fixes: https://bugs.llvm.org/show_bug.cgi?id=46068 Differential revision: https://reviews.llvm.org/D80374
-
Greg Clayton authored
Summary: Running `vsce package` to package lldb-vscode as an installable .vsix file errors with: ``` ERROR Invalid publisher name 'llvm.org'. Expected the identifier of a publisher, not its human-friendly name. ``` This patch fixes the publisher name and bumps a required dependency so that `vsce package` succeeds. Reviewers: clayborg Reviewed By: clayborg Tags: #lldb Differential Revision: https://reviews.llvm.org/D80569
-
Vitaly Buka authored
We are going to convert this into pure analysis, so processing will be delayed up to the first safety request.
-
Vitaly Buka authored
-
Vitaly Buka authored
We need to process only parameters. Allocas access can be calculated afterwards. Also don't create fake function for aliases and just resolve them on initialization.
-
Vitaly Buka authored
-
Jonas Devlieghere authored
Jim pointed out that "every time somebody has touched the documentation on startup files they have stated that we source the application one and then the global one, even though in actual fact we’ve never done that." Indeed, when we read the application specific .lldbinit file, the global one is not read. This patch updates the man page to reflect that.
-
Vy Nguyen authored
Differential Revision: https://reviews.llvm.org/D80603
-
Eduardo Caldas authored
Summary: * Test if the code sourcing the SyntaxTree compiles * Output compiler errors and warnings to err * Fix tests with code that did not compile Reviewers: gribozavr2 Reviewed By: gribozavr2 Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D80731
-
Arthur Eubanks authored
Summary: Follow-up to https://reviews.llvm.org/D80581. Turns out the codegen part already worked, so only needed to add tests. I manually verified that in these tests the generated code for inalloca and preallocated were identical. Reviewers: efriedma, hans Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80742
-
aartbik authored
Summary: Only column-major was supported so far. This adds row-major support as well. Note that we probably also want very efficient SIMD implementations for the various target platforms. Bug: https://bugs.llvm.org/show_bug.cgi?id=46085 Reviewers: nicolasvasilache, reidtatge, bkramer, fhahn, ftynse, andydavis1, craig.topper, dcaballe, mehdi_amini, anemet Reviewed By: fhahn Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80673
-
Whitney Tsang authored
This reverts commit 28105822. Revert until http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-debian/builds/7334 is resolved.
-
Sjoerd Meijer authored
Map the CPU ID value 0xd0c to "neoverse-n1". Patch by James Greenhalgh. Differential Revision: https://reviews.llvm.org/D80736
-
Stanislav Mekhanoshin authored
-
Philip Reames authored
I'd apparently only grepped in the lib directories and missed a few used in the Statepoint header itself. Beyond simple mechanical cleanup, changed the type of one routine to reflect the fact it also returns a statepoint.
-
Matt Arsenault authored
If this mask only clears bits in the low 32-bit half of a flat pointer, these bits are always preserved in the result address space. If the high bits are modified, they may need to be preserved for some kind of user pointer tagging.
-
Louis Dionne authored
-
Whitney Tsang authored
latch. Summary: Remove the limitation in LoopUnrollPass that exiting block must be either header or latch. Reviewer: dmgreen, jdoerfert, Meinersbur, kbarton, bmahjour, etiotto, fhahn, efriedma Reviewed By: etiotto, fhahn, efriedma Subscribers: efriedma, lkail, xbolva00, hiraditya, zzheng, llvm-commits Tag: LLVM Differential Revision: https://reviews.llvm.org/D80477
-
Matt Arsenault authored
This will be more useful with fenv access implemented.
-
Anthony Steinhauser authored
Building libc without clang fails with: CMake Error at /home/asteinhauser/llvm-project/libc/CMakeLists.txt:49 (message): 'clang' and 'clang-tools-extra' are required in LLVM_ENABLE_PROJECTS to lint llvm-libc. The linting step performs important checks to help prevent the introduction of subtle bugs, but it may increase build times. Reviewers: sivachandra Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D80495
-
Tobias Hieta authored
Differential Revision: https://reviews.llvm.org/D80492
-
MaheshRavishankar authored
operands of Generic ops. Unit-extent dimensions are typically used for achieving broadcasting behavior. The pattern added (along with canonicalization patterns added previously) removes the use of unit-extent dimensions, and instead uses a more canonical representation of the computation. This new pattern is not added as a canonicalization for now since it entails adding additional reshape operations. A pass is added to exercise these patterns, along with an API entry to populate a patterns list with these patterns. Differential Revision: https://reviews.llvm.org/D79766
-
Alex Zinenko authored
D80142 restructured MLIR-to-GPU-binary conversion to support multiple targets. It also modified cmake files to link relevant LLVM components in test/lib, which broke shared-library builds, and likely made the conversions unusable outside mlir-opt (or other tools that link in test library targets). Link these components to GPUCommon instead. Differential Revision: https://reviews.llvm.org/D80739
-
Philip Reames authored
Sinking logic around actual callee from Statepoint to GCStatepointInst. While doing so, adjust naming to be consistent about refering to "actual" callee and follow precedent on naming from CallBase otherwise. Use the result to simplify one consumer. This is mostly just to ensure the new code is exercised, but is also a helpful cleanup on it's own.
-
Jonas Devlieghere authored
This adds a new target `check-lldb-reproducers` that replaces the old `check-lldb-repro`. The latter would only run the shell tests, while `check-lldb-reproducers` includes the API tests as well. The new target will be used on GreenDragon. It's still possible to run just the shell tests with reproducers, although now that requires crafting the lit invocation yourself. The parameters haven't changed and are the shame for the API and shell tests: --param lldb-run-with-repro=capture --param lldb-run-with-repro=replay This patch also updates the reproducer documentation.
-
Valeriy Savchenko authored
Reviewers: NoQ, dcoughlin Subscribers: xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, Charusso, ASDenysPetrov, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D80626
-
Yitzhak Mandelbaum authored
-
Nikita Popov authored
00940fb8 changed this code to construct a set for the B metadata. However, it still performs a linear is_contained query, rather than making use of the set structure.
-
Hiroshi Yamauchi authored
Summary: Count the per-module number of basic blocks when the module summary is computed and sum them up during Thin LTO indexing. This is used to estimate the working set size under the partial sample PGO. This is split off of D79831. Reviewers: davidxl, espindola Subscribers: emaste, inglorion, hiraditya, MaskRay, steven_wu, dexonsmith, arphaman, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80403
-
Valeriy Savchenko authored
-
Valeriy Savchenko authored
-
Philip Reames authored
Continues from D80598. The key point of the change is to default to using operand bundles instead of the inline length prefix argument lists for statepoint nodes. An important subtlety to note is that the presence of a bundle has semantic meaning, even if it is empty. As such, we need to make a somewhat deeper change to the interface than is first obvious. Existing code treats statepoint deopt arguments and the deopt bundle operands differently during inlining. The former is ignored (resulting in caller state being dropped), the later is merged. We can't preserve the old behaviour for calls with deopt fed to RS4GC and then inlining, but we can avoid the no-deopt case changing. At least in internal testing, that seem to be the important one. (I'd argue the "stop merging after RS4GC" behaviour for the former was always "unexpected", but that the behaviour for non-deopt calls actually make sense.) Differential Revision: https://reviews.llvm.org/D80674
-
Hiroshi Yamauchi authored
Summary: Follow up D79751 and put the instrumentation / value collection side (in addition to the optimization side) behind the flag as well. Reviewers: davidxl Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80646
-