- May 26, 2021
-
-
Martin Storsjö authored
This particular test relies on internal details from the libc++ filesystem implementation header, and those details are structured differently in the implementation for Windows. Differential Revision: https://reviews.llvm.org/D102357
-
Martin Storsjö authored
Use the same visiblity attributes as for all other template specializations in the same file; declare the specialization itself using _LIBCPP_TYPE_VIS, and don't use _LIBCPP_EXPORTED_FROM_ABI on the destructor. Methods that are excluded from the ABI are marked with _LIBCPP_INLINE_VISIBILITY. This makes the vtable exported from DLL builds of libc++. Practically, it doesn't make any difference for the CI configuration, but it can make a difference in mingw setups. Differential Revision: https://reviews.llvm.org/D102717
-
Martin Storsjö authored
LLVM_DEFINITIONS is a string variable containing a list of arguments to pass to the compiler. When CMake's add_definitions is passed a string variable, this is interpreted as one argument. To make it behave properly, the string variable needs to be split into a list. Despite the fact that add_definitions isn't supposed to be used like the LLVM docs recommended, it worked fine in practice in many cases. If the first argument in LLVM_DEFINITIONS is of the form -DFOO=42 instead of plain -DFOO, the rest of the string is treated as value to this define. I.e. if LLVM_DEFINITIONS consists of `-DFOO=42 -DBAR`, CMake ended up passing `-DFOO="42 -DBAR"` to the compiler. See https://gitlab.kitware.com/cmake/cmakissues/22162 for discussion on the matter. Changing LLVM_DEFINITIONS to be a list variable would possibly be more disruptive; instead keep the variable defined as before but change the recommendation for how to use it. Then projects using it can gradually be updated to follow the new recommendation. Differential Revision: https://reviews.llvm.org/D103044
-
Krzysztof Parzyszek authored
It will be reintroduced shortly with an actual use. This change is simply to eliminate a compilation warning.
-
Fangrui Song authored
[sanitizer][test] s/A<10>/A<7>/ to fix "WARNING: Symbolizer buffer too small" which is somehow a hard error on s390x https://reviews.llvm.org/D102046#2766553
-
Arthur Eubanks authored
Reviewed By: theraven Differential Revision: https://reviews.llvm.org/D102523
-
Bruno Cardoso Lopes authored
Handy when testing specific files, already supported in other components. Example: cd build; ./bin/llvm-lit ../compiler-rt/test/tsan/ignore_free.cpp Differential Revision: https://reviews.llvm.org/D103054
-
Stanislav Mekhanoshin authored
-
Vitaly Buka authored
-
Lang Hames authored
During the generic x86-64 support refactor in ecf6466f the implementation of MachO_arm64_GOTAndStubsBuilder::isGOTEdgeToFix was altered to only return true for external symbols. This behavior is incorrect: GOT entries may be required for defined symbols (e.g. in the large code model). This patch fixes the bug and adds a test case for it (renaming an old test case to avoid any ambiguity).
-
Lang Hames authored
-
Mathieu Fehr authored
The copy constructor was missing from FailureOr. Note that I do not have commit access. Differential Revision: https://reviews.llvm.org/D98955
-
Benjamin Kramer authored
dump() doesn't exist in release builds. ld.lld: error: undefined symbol: llvm::Value::dump() const >>> referenced by LowerMatrixIntrinsics.cpp >>> LowerMatrixIntrinsics.o:((anonymous namespace)::LowerMatrixIntrinsics::Visit())
-
Jake Egan authored
Avoiding structor alias is no longer needed because AIX now has an alias implementation here: https://reviews.llvm.org/D83252. This reverts commit b116ded5. Reviewed By: jasonliu Differential Revision: https://reviews.llvm.org/D102724
-
Nikita Popov authored
When memoized values for a SCEV expressions are dropped, we also drop all BECounts that make use of the SCEV expression. This is done by iterating over all the ExitNotTaken counts and (recursively) checking whether they use the SCEV expression. If there are many exits, this will take a lot of time. This patch improves the situation by pre-computing a set of all used operands, so that we can determine whether a certain BEInfo needs to be invalidated using a simple set lookup. Will still need to loop over all BEInfos though. This makes for a mild improvement on non-degenerate cases: https://llvm-compile-time-tracker.com/compare.php?from=b661a55a253f4a1cf5a0fbcb86e5ba7b9fb1387b&to=be1393f450e594c53f0ad7e62339a6bc831b16f6&stat=instructions For the degenerate case from https://bugs.llvm.org/show_bug.cgi?id=50384, for n=128 I'm seeing run time drop from 1.6s to 1.1s. Differential Revision: https://reviews.llvm.org/D102796
-
LLVM GN Syncbot authored
-
Jez Ng authored
As @alexshap pointed out [here](https://reviews.llvm.org/D102972#inline-975208), it's a bit confusing to have the option to sort OutputSections with any comparator when in practice we only use one. Reviewed By: #lld-macho, alexshap, thakis Differential Revision: https://reviews.llvm.org/D102974
-
Jez Ng authored
This diff paves the way for {D102964} which adds a new kind of InputSection. We previously maintained section ordering implicitly: we created InputSections as we parsed each file in command-line order, and passed on this ordering when we created OutputSections and OutputSegments by iterating over these InputSections. The implicitness of the ordering made it difficult to refactor the code to e.g. handle a new type of InputSection. As such, I've codified the ordering explicitly via `inputOrder` fields. This also allows us to use `sort` instead of `stable_sort`. Benchmarking chromium_framework on my 3.2 GHz 16-Core Intel Xeon W: N Min Max Median Avg Stddev x 20 4.23 4.35 4.27 4.274 0.030157481 + 20 4.24 4.38 4.27 4.2815 0.033759989 No difference proven at 95.0% confidence Reviewed By: #lld-macho, alexshap Differential Revision: https://reviews.llvm.org/D102972 -
Jez Ng authored
The ELF format has the concept of merge sections (marked by SHF_MERGE), which contain data that can be safely deduplicated. The Mach-O equivalents are called literal sections (marked by S_CSTRING_LITERALS or S_{4,8,16}BYTE_LITERALS). While the Mach-O format doesn't use the word 'merge', to avoid confusion, I've renamed our MergedOutputSection to ConcatOutputSection. I believe it's a more descriptive name too. This renaming sets the stage for {D102964}. Reviewed By: #lld-macho, alexshap Differential Revision: https://reviews.llvm.org/D102971 -
Jez Ng authored
-
Jez Ng authored
* Move `static_asserts` into cpp instead of header file. I noticed they had been separated from the main class definition in the header, so I set about to clean that up, then figured it made more sense as part of the cpp file so as not to incur unnecessary compile-time overhead. * Remove unnecessary `virtual`s * Remove unnecessary comment / reword another comment
-
Vitaly Buka authored
This reverts commit 2c212db4. It's not needed.
-
Nikita Popov authored
The common phi value transform replaces constants with values that have the same value as the constant on a given edge. However, LVI generally only provides information that is correct up to poison, so this can end up replacing a well-defined value with poison. D69442 addressed an instance of this problem by clearing poison flags on the generating instruction, which was sufficient at the time. rGa917fb89 made LVI's edge value analysis slightly more powerful, and clearing poison flags is no longer sufficient. This patch changes the transform to instead explicitly guard against a poison value instead. This should be satisfied for most cases due to a prior branch on poison. Fixes https://bugs.llvm.org/show_bug.cgi?id=50399. Differential Revision: https://reviews.llvm.org/D102966
-
Michael Liao authored
- When memory intrinsics, such as memcpy, the attached scoped AA metadata is not passed down to the backend. As a result, the backend cannot schedule relevant memory operations around them following that hint. In this patch, SelectionDAG is enhanced to propagate that metadata (scoped AA only) when they are lowered into loads and stores. Differential Revision: https://reviews.llvm.org/D102215
-
-
Mathieu Fehr authored
Currently, AbstractOperation fields are function pointers. Modifying them to unique_function allow them to contain runtime information. For instance, this allows operations to be defined at runtime. Differential Revision: https://reviews.llvm.org/D103031
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D102954
-
Sanjay Patel authored
The semantics of select with undefined/poison condition are not explicitly stated in the LangRef, but this matches comments in the code and Alive2 appears to concur: https://alive2.llvm.org/ce/z/KXytmd We can find this pattern after demanded elements transforms. As noted in D101191, fuzzers are finding infinite loops because we may not account for this pattern in other passes.
-
Markus Böck authored
This patch is the third in a series of patches fixing markdown links and references inside the mlir documentation. This patch addresses all broken references to other markdown files and sections inside the Tutorials folder. Differential Revision: https://reviews.llvm.org/D103017
-
Adam Nemet authored
Now that we can fold some transposes into multiplies (CM: A * B^t and RM: A^t * B), we want to move them around to create the optimal expressions: * fold away double transposes while still using them to assert the shape * sink transposes hoping they cancel out * lift transposes when both operands are transposed This also modifies the matrix remarks to include the number of exposed transposes (i.e. transposes that we couldn't fold into a multiply). The adjustment to the test remarks-inlining is a bit subtle: I am changing the double transpose to a single transpose so that we don't remove it completely. More importantly this changes some of the total instruction count, most notable stores because we can no longer use a vector store. Differential Revision: https://reviews.llvm.org/D102733
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D103104
-
Roman Lebedev authored
[LoopIdiom] 'arithmetic right-shift until zero': don't turn potentially infinite loops into finite ones Nowadays LLVM does not assume that all loops are finite, so if we want to produce a finite loop from a potentially-infinite one, we must ensure that the original loop is known to be a finite one. For this transform, it only matters for arithmetic right-shifts. For them, either the function or the loop must be known to be `mustprogress`, or the original value being shifted must be known to be non-negative (because iff the sign bit was set, it will never become zero, but will become `-1` in the "end"). It would be really good for alive2 to actually complain about this, but it currently does not: https://github.com/AliveToolkit/alive2/issues/726
-
Vitaly Buka authored
Cast of signed types to u64 breaks comparison. Also remove double () around operands. Reviewed By: cryptoad, hctim Differential Revision: https://reviews.llvm.org/D103060
-
Vitaly Buka authored
Make sure that if SCUDO_DEBUG=1 in tests then we had the same in the scudo library itself. Reviewed By: cryptoad, hctim Differential Revision: https://reviews.llvm.org/D103061
-
Krzysztof Parzyszek authored
-
Tobias Gysi authored
Update the paragraph on generic / indexed_generic to reflect the unification of these operations. Differential Revision: https://reviews.llvm.org/D102775
-
Wenlei He authored
llvm-profgen uses profile summary based cold threshold to merge and trim cold context profile. This is to strike a good balance between profile size and performance. We've been using 99.9% as the cutoff to save profile size without affecting performance. This change switch to use 99.9% instead of 99.9999% as default cold threshold cutoff for llvm-profgen. Redundant switch csprof-cold-thres is also removed and tests cleaned up. Differential Revision: https://reviews.llvm.org/D103071
-
peter klausler authored
A recent fix for problems with ENTRY statement handling didn't get the case of a procedure dummy argument on an ENTRY statement in an executable part right; the code presumed that those dummy arguments would be objects, not entities that might be objects or procedures. Fix. Differential Revision: https://reviews.llvm.org/D103098
-
Mirko Brkusanin authored
This function can change regbank for registers which already have a selected bank. Depending on the instruction where these registers were used it can cause instruction selection to fail.
-
Sanjay Patel authored
The 2nd test is based on the fuzzer example in post-commit comments of D101191 - https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34661 The 1st test shows that we don't deal with this symmetrically. We should be able to reduce both examples (possibly in instsimplify instead of instcombine).
-