- Sep 16, 2023
-
-
LLVM GN Syncbot authored
-
William Junda Huang authored
This is the patch at https://reviews.llvm.org/D153692, migrating to Github After testing D147740 with multiple industrial projects with ~10 million FunctionSamples, no MD5 collision has been found. In perfect hashing, the probability of collision for N symbols over K possible hash value is 1 - K!/((K-N)! * K^N). When N is 1 million and K is 2^64, the probability is 3*10^-8, when N is 10 million the probability is 3*10^-6, so we are probably not going to find an actual case in real world application. (However if K is 2^32, the probability of collision is almost 1, this is indeed a problem, if anyone still use a large profile on 32-bit machine, as hash_code is tied to size_t). Furthermore, when a collision happens we can't do anything to recover it, unless using a multi-map, but that is significantly slower, which contradicts the purpose of optimizing the profile reader. One more thing, since we have been using profiles with MD5 names, and they have to be coming from non-MD5 sources, so if hash collision is to happen, it already happened when we convert a non-MD5 profile to a MD5 one, so there's no point to check for that in the reader, and this feature can be removed.
-
Andrés Villegas authored
Reason: Not including appropiated headers for sanitizer_symbolizer_markup.cpp which only runs in fuchsia. This reverts commit d4152c5c.
-
Philip Reames authored
In D154687, we added a transform to narrow indexed load/store indices of the form (shl (zext), C). We can move this into a generic transform over the target independent nodes instead, and pick up the fixed vector cases with no additional work required. This is an alternative to D158163. Performing this transform points out that we weren't eliminating zero_extends via the the generic DAG combine. Adjust the (existing) callbacks so that we do. This change *removes* the existing transform on the target specific intrinsic nodes. If anyone has a use case this impacts, please speak up. Note: Reviewed as part of a stack of changes in PR# 66405.
-
Philip Reames authored
If the index type is greater or equal to XLEN, then signed and unsigned are the same. Canonacalize towards unsigned to simplify upcoming transform. Note: Reviewed as part of a stack of changes in PR# 66405.
-
Philip Reames authored
Note: Reviewed as part of a stack of changes in PR# 66405.
-
Siva Chandra authored
-
Mircea Trofin authored
Post - D156491 or cbdccb30. Just re-based reference outputs.
-
Louis Dionne authored
-
Mitch Phillips authored
This test asserts that HWASan memory usage can be gathered from /proc/$PID/maps. This worked because the old Android-specific versions of the anonymous mmap patches functioned by providing a userland cstring pointer to the kernel, and the underlying cstring was collected from that pointer address dynamically when /proc/$PID/maps was being decorated. This had some obvious flaws, you had to keep the string around for the lifetime of the program. Now, the official kernel implementation of this is to copy the string into a kernel struct at prctl()-time. Thus, the name that you give at prctl()-time sticks around and can't be changed by userspace outside of another prctl call. This breaks the feature, but this is fine, it's not like anyone's really relying on it anyway. So, let's make sure we don't continue failing the test on new versions of Android where the kernel has the upstream version of the named-anonymous-mappings work.
-
Owen Pan authored
See https://reviews.llvm.org/D136154#3890747 for context. Fixes part of #58592.
-
Zequan Wu authored
Before, constructor member initializers are shown as not covered. This adds coverage info for them.
-
Tai Ly authored
This patch changes the MaxScale value for level EightK to 256. Also updated affected level check tests Change-Id: Id9cffd5eb9053bb688196cd5b3b55b3ddd2a359c Signed-off-by:Tai Ly <tai.ly@arm.com>
-
Andres Villegas authored
Introduce a new virtual class StackTracePrinter and an implementation FormattedStackTracePrinter in preparation of enabling symbolizer markup for linux. This change allows us to implement other behaviour under the same api for StackTracePrinter, for example, MarkupStackTracePrinter.
-
Matt Arsenault authored
The set of handled intrinsics for fneg combines aren't convergent. The only case we might want to handle is mov_dpp.
-
Louis Dionne authored
This ensures that a review from the appropriate teams is requested on PRs that modify files belonging to these projects. Relevant discussion: https://discourse.llvm.org/t/changes-to-pull-request-subscription-system
-
Yinying Li authored
**COO** `lvlTypes = [ "compressed_nu", "singleton" ]` to `map = (d0, d1) -> (d0 : compressed(nonunique), d1 : singleton)` `lvlTypes = [ "compressed_nu_no", "singleton_no" ]` to `map = (d0, d1) -> (d0 : compressed(nonunique, nonordered), d1 : singleton(nonordered))` **SortedCOO** `lvlTypes = [ "compressed_nu", "singleton" ]` to `map = (d0, d1) -> (d0 : compressed(nonunique), d1 : singleton)` **BCOO** `lvlTypes = [ "dense", "compressed_hi_nu", "singleton" ]` to `map = (d0, d1, d2) -> (d0 : dense, d1 : compressed(nonunique, high), d2 : singleton)` **BCSR** `lvlTypes = [ "compressed", "compressed", "dense", "dense" ], dimToLvl = affine_map<(d0, d1) -> (d0 floordiv 2, d1 floordiv 3, d0 mod 2, d1 mod 3)>` to `map = ( i, j ) -> ( i floordiv 2 : compressed, j floordiv 3 : compressed, i mod 2 : dense, j mod 3 : dense )` **Tensor and other supported formats(e.g. CCC, CDC, CCCC)** Currently, ELL and slice are not supported yet in the new syntax and the CHECK tests will be updated once printing is set to output the new syntax. Previous PRs: #66146, #66309, #66443 -
Saleem Abdulrasool authored
The import library thunk name suffix uses the stem of the file. We currently would attempt to trim the suffix by dropping the trailing 4 characters (under the assumption that the output name was `.lib`). This now uses the `llvm::sys::path` API for computing the stem. This avoids an assertion failure when the name is less the 4 characters and assertions are enabled.
-
Guozhi Wei authored
If a virtual register is not assigned preferred physical register, it means some COPY instructions will be changed to real register move instructions. In this case we can try to split the virtual register in colder blocks, if success, the original COPY instructions can be deleted, and the new COPY instructions in colder blocks will be generated as register move instructions. It results in fewer dynamic register move instructions executed. The new test case split-reg-with-hint.ll gives an example, the hot path contains 24 instructions without this patch, now it is only 4 instructions with this patch. Differential Revision: https://reviews.llvm.org/D156491
-
Daniil Dudkin authored
This commit adds the mentioned kinds of `AtomicRMWKind` as well as code generation for them.
-
Philip Reames authored
We have the analogous case in the single insert path. The reasoning here is that if the original VL fits in LMUL1, we'd prefer to clobber a few extra dead lanes than to force two VL toggles. VTYPE toggles are generally cheaper than VL toggles.
-
Ingo Müller authored
The previous implementation crashed if run on a `builtin.module` using an `op_name` filter (because the initial value of `parent` in the while loop was a `nullptr`). This PR fixes the crash and adds a test.
-
Vitaly Buka authored
COMPILER_RT_STANDALONE_BUILD is only needed to be checked for dependencies outside of compiler-rt.
-
Zequan Wu authored
[NFC][Coverage] Rename coverage function attribute name from "Cov Function Name" to "Coverage Function Name"
-
Aaron Ballman authored
This addresses issues found by: https://lab.llvm.org/buildbot/#/builders/69/builds/41718
-
Alexey Bataev authored
Improve the analysis in canReuseExtracts for the reodering to better reorder extracts for ExtractSubvector pattern.
-
Timm Baeder authored
Just ignore the attributes.
-
Aart Bik authored
Rationale: A bufferization.alloc_tensor can be directly replaced with tensor.empty since these are more or less semantically equivalent. The latter is considered a bit more "pure" with respect to SSA semantics. -
Zequan Wu authored
-
Jonas Devlieghere authored
This is a (rough) port of architecture/varformats.html page that got lost during the migration to RST in edb874b2. I'm not sure how much of its content is still relevant today. However, the page is pretty extensive and seems like it's worth preserving.
-
Stephen Tozer authored
Revision c383f4d6 enabled using variadic-form debug values to represent single-location, non-stack-value debug values, and a further patch made all DBG_INSTR_REFs use variadic form. Not all code paths were updated correctly to handle the new syntax however, with entry values in still expecting an expression that begins exactly DW_OP_LLVM_entry_value, 1. A function already exists to select non-variadic-like expressions; this patch adds an extra function to cheaply simplify such cases to non-variadic form, which we use prior to any entry-value processing to put DBG_INSTR_REFs and DBG_VALUEs down the same code path. We also use it for a few DIExpression functions that check for whether the first element(s) of a DIExpression match a particular pattern, so that they will return the same result for DIExpression(DW_OP_LLVM_arg, 0, <ops>) as for DIExpression(<ops>). Differential Revision: https://reviews.llvm.org/D158185
-
Zequan Wu authored
Debug info correlation is an option in InstrProfiling pass, which is used by both IR instrumentation and front-end instrumentation. So, Clang coverage can also benefits the binary size saving from it. Reviewed By: ellis Differential Revision: https://reviews.llvm.org/D157913
-
Mitch Phillips authored
Related to fd1721d8, fix up a signed-unsigned type comparison bug.
-
Jon Roelofs authored
The indirect lowering hinders the outliner's ability to see that sequences are in fact common, since the sequence similarity is rendered opaque by the register callee. The size savings from making them indirect seems to be dwarfed by the outliner's savings from de-duplication. rdar://115178034 rdar://115459865
-
Nick Desaulniers authored
Use multiple Bitfield::Element's to provide more meaningful access to the same slice of bits. "Data" used in different contexts is confusing. Try to be as clear as possible, and in that vein, update the comment block for this class, too. This was suggested by @bwendling in https://github.com/llvm/llvm-project/pull/65649#discussion_r1318962795 and @jyknight in https://github.com/llvm/llvm-project/pull/65649#pullrequestreview-1620359094
-
nicole mazzuca authored
These functions are required for the related wcs[n]cpy functions to be wrapped on Windows, since given our current method of wrapping functions, calling REAL(wcs[n]cpy) is broken. @vitalybuka requested that these changes be split out from llvm/llvm-project#66128.
-
Anton Korobeynikov authored
One of the main user of these kind of coroutines is swift. There yield-once (`retcon.once`) coroutines are used to temporary "expose" pointers to internal fields of various objects creating borrow scopes. However, in some cases it might be useful also to allow these coroutines to produce a normal result, but there is no convenient way to represent this (as compared to switched-resume kind of coroutines where C++ `co_return` is transformed to a member / callback call on promise object). The extension is simple: we allow continuation function to have a non-void result and accept optional extra arguments via a special `llvm.coro.end.result` intrinsic that would essentially forward them as normal results.
-
Augie Fackler authored
This fixes a crash in `rustc` that was triggered by https://reviews.llvm.org/D159485 (aka llvm/llvm-project@1ce1732f82aec29ec27d6de58153d516bca1d633). This was more or less pair-programmed with @krasimirgg - I can't claim full credit.
-
walter erquinigo authored
The new code is a bit simpler bit achieves the same goal. A small test was added just in case.
-
Prabhdeep Singh Soni authored
This patch fixes the shared clause for the task construct with multiple shared variables. The shareds field in the kmp_task_t is not an inline array in the struct, rather it is a pointer to an array. With an inline array, the pointer dereference to the outlined function body of the task would segmentation fault when accessed by the runtime. Reviewed By: kiranchandramohan, jdoerfert Differential Revision: https://reviews.llvm.org/D158462
-