- May 26, 2021
-
-
Arthur Eubanks authored
FullTy is only necessary when we need to figure out what type an instruction works with given a pointer's pointee type. However, we just end up using the value operand's type, so FullTy isn't necessary. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D102788
-
Jonas Devlieghere authored
Right after pushing, I remembered that this was added to silence a GCC warning (https://reviews.llvm.org/D99120). This reverts my patch and adds a comment.
-
Jonas Devlieghere authored
Pass LLVM_PRETTY_FUNCTION directly for the no-argument macro.
-
Teresa Johnson authored
When the lower type test pass is invoked a second time with DropTypeTests set to true, it expects that all remaining type tests feed assume instructions, which are removed along with the type tests. In some cases the llvm.assume might have been merged with another one, i.e. from a builtin_assume instruction, in which case the type test would actually feed a phi that in turn feeds the merged assume instruction. In this case we can simply replace that operand of the phi with "true" before removing the type test. Differential Revision: https://reviews.llvm.org/D103073
-
Arthur Eubanks authored
Since the opaque pointer type won't contain the pointee type, we need to separately encode the value type for an atomicrmw. Emit this new code for atomicrmw. Handle this new code and the old one in the bitcode reader. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D103123
-
Fangrui Song authored
The generic approach can still be used by musl and FreeBSD. Note: on glibc 2.31, TLS_PRE_TCB_SIZE is 0x700, larger than ThreadDescriptorSize() by 16, but this is benign: as long as the range includes pthread::{specific_1stblock,specific} pthread_setspecific will not cause false positives. Note: the state before afec9538 underestimated the TLS size a lot (nearly ThreadDescriptorSize() = 1776). That may explain why afec9538 actually made some tests pass. -
Kevin Athey authored
LLVM Detailed IR tests for introduction of flag -fsanitize-address-detect-stack-use-after-return-mode. Rework all tests that interact with use after return to correctly handle the case where the mode has been explicitly set to Never or Always. for issue: https://github.com/google/sanitizers/issues/1394 Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D102462
-
Alexandre Ganea authored
When building with Clang 11 on Windows, silence the following: F:\aganea\llvm-project\llvm\utils\benchmark\include\benchmark/benchmark.h(955,8): warning: 'Run' overrides a member function but is not marked 'override' [-Wsuggest-override] void Run(State& st); ^ F:\aganea\llvm-project\llvm\utils\benchmark\include\benchmark/benchmark.h(895,16): note: overridden virtual function is here virtual void Run(State& state) = 0; ^ 1 warning generated. -
Alexandre Ganea authored
When building with Clang 11 on Windows, silence the following: [432/5643] Building C object projects\compiler-rt\lib\profile\CMakeFiles\clang_rt.profile-x86_64.dir\GCDAProfiling.c.obj F:\aganea\llvm-project\compiler-rt\lib\profile\GCDAProfiling.c(464,13): warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Wsign-compare] if (val != (gcov_version >= 90 ? GCOV_TAG_OBJECT_SUMMARY ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. -
Rob Suderman authored
Indexed Generic should be going away in the future. Migrate to linalg.index. Reviewed By: NatashaKnk, nicolasvasilache Differential Revision: https://reviews.llvm.org/D103110
-
Vitaly Buka authored
Reviewed By: cryptoad Differential Revision: https://reviews.llvm.org/D103122
-
Chris Lattner authored
MLIRContext holds a few special case values that occur frequently like empty dictionary and NoneType, which allow us to avoid taking locks to get an instance of them. Give the empty StringAttr this treatment as well. This cuts several percent off compile time for CIRCT. Differential Revision: https://reviews.llvm.org/D103117
-
Chris Lattner authored
-
Jon Chesterfield authored
[libomptarget][nfc] Move hostcall required test to rtl Remove a global, fix minor race. First of N patches to bring up hostcall. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D103058
-
Louis Dionne authored
-
David Green authored
-
Fangrui Song authored
Beside the `comdat any` deduplication feature, instrumentations use comdat to establish dependencies among a group of sections, to prevent section based linker garbage collection from discarding some members without discarding all. LangRef acknowledges this usage with the following wording: > All global objects that specify this key will only end up in the final object file if the linker chooses that key over some other key. On ELF, for PGO instrumentation, a `__llvm_prf_cnts` section and its associated `__llvm_prf_data` section are placed in the same GRP_COMDAT group. A `__llvm_prf_data` is usually not referenced and expects the liveness of its associated `__llvm_prf_cnts` to retain it. The `setComdat(nullptr)` code (added by D10679) in InternalizePass can break the use case (a `__llvm_prf_data` may be dropped with its associated `__llvm_prf_cnts` retained). The main goal of this patch is to fix the dependency relationship. I think it makes sense for InternalizePass to internalize a comdat and thus suppress the deduplication feature, e.g. a relocatable link of a regular LTO can create an object file affected by InternalizePass. If a non-internal comdat in a.o is prevailed by an internal comdat in b.o, the a.o references to the comdat definitions will be non-resolvable (references cannot bind to STB_LOCAL definitions in b.o). On PE-COFF, for a non-external selection symbol, deduplication is naturally suppressed with link.exe and lld-link. However, this is fuzzy on ELF and I tend to believe the spec creator has not thought about this use case (see D102973). GNU ld and gold are still using the "signature is name based" interpretation. So even if D102973 for ld.lld is accepted, for portability, a better approach is to rename the comdat. A comdat with one single member is the common case, leaving the comdat can waste (sizeof(Elf64_Shdr)+4*2) bytes, so we optimize by deleting the comdat; otherwise we rename the comdat. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D103043
-
Matt Morehouse authored
This reverts commit 2531fd70 due to performance regression on the PPC buildbot.
-
Arthur O'Dwyer authored
This also provides some of the scaffolding needed by D102992 and D101729, and mops up after D101730 etc. Differential Revision: https://reviews.llvm.org/D103055
-
Martin Storsjö authored
If the nested create_directory call fails, we'd still want to re-report the errors with the create_directories function name, which is what the caller called. This fixes one aspect from MS STL's tests for std::filesystem. Differential Revision: https://reviews.llvm.org/D102365
-
Chris Lattner authored
This provides a sizable compile time improvement by seeding the worklist in an order that leads to less iterations of the worklist. This patch only changes the behavior of the Canonicalize pass itself, it does not affect other passes that use the GreedyPatternRewrite driver Differential Revision: https://reviews.llvm.org/D103053
-
Peter Steinfeld authored
Defined input/output procedures are specified in 12.6.4.8. There are different versions for read versus write and formatted versus unformatted, but they all share the same basic set of dummy arguments. I added several checking functions to check-declarations.cpp along with a test. In the process of implementing this, I noticed and fixed a typo in .../lib/Evaluate/characteristics.cpp. Differential Revision: https://reviews.llvm.org/D103045
-
Chris Lattner authored
This allows C++ clients of the Canonicalize pass to specify their own Config option struct to control how Canonicalize works, increasing reusability. This also allows controlling these settings for the default Canonicalize pass using command line options. This is useful for testing and for playing with things on the command line. Differential Revision: https://reviews.llvm.org/D103069
-
Shoaib Meenai authored
This was changed from using the header to using a forward declaration in c4600ccf, since older versions of the header didn't declare the function. At this point, it's been declared for ~3.5 years, and it should be pretty safe to assume that we can rely on the ASan interface header to provide a declaration instead of needing to write our own. Reviewed By: #libc_abi, ldionne Differential Revision: https://reviews.llvm.org/D103003
-
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
-