- Oct 17, 2020
-
-
Austin Kerbow authored
If instructions were removed in peephole passes after the hazard recognizer was run it is possible that new hazards could be introduced. Fixes: SWDEV-253090 Reviewed By: rampitec, arsenm Differential Revision: https://reviews.llvm.org/D89077
-
River Riddle authored
This transforms the symbol lookups to O(1) from O(NM), greatly speeding up both passes. For a large MLIR module this shaved seconds off of the compilation time. Differential Revision: https://reviews.llvm.org/D89522
-
River Riddle authored
The initial goal of this interface is to fix the current problems with verifying symbol user operations, but can extend beyond that in the future. The current problems with the verification of symbol uses are: * Extremely inefficient: Most current symbol users perform the symbol lookup using the slow O(N) string compare methods, which can lead to extremely long verification times in large modules. * Invalid/break the constraints of verification pass If the symbol reference is not-flat(and even if it is flat in some cases) a verifier for an operation is not permitted to touch the referenced operation because it may be in the process of being mutated by a different thread within the pass manager. The new SymbolUserOpInterface exposes a method `verifySymbolUses` that will be invoked from the parent symbol table to allow for verifying the constraints of any referenced symbols. This method is passed a `SymbolTableCollection` to allow for O(1) lookups of any necessary symbol operation. Differential Revision: https://reviews.llvm.org/D89512
-
River Riddle authored
This revision contains two optimizations related to symbol checking: * Optimize SymbolOpInterface to only check for a name attribute if the operation is an optional symbol. This removes an otherwise unnecessary attribute lookup from a majority of symbols. * Add a new SymbolTableCollection class to represent a collection of SymbolTables. This allows for perfoming non-flat symbol lookups in O(1) time by caching SymbolTables for symbol table operations. This class is very useful for algorithms that operate on multiple symbol tables, either recursively or not. Differential Revision: https://reviews.llvm.org/D89505
-
River Riddle authored
(Note: This is a reland of D82597) This class allows for defining thread local objects that have a set non-static lifetime. This internals of the cache use a static thread_local map between the various different non-static objects and the desired value type. When a non-static object destructs, it simply nulls out the entry in the static map. This will leave an entry in the map, but erase any of the data for the associated value. The current use cases for this are in the MLIRContext, meaning that the number of items in the static map is ~1-2 which aren't particularly costly enough to warrant the complexity of pruning. If a use case arises that requires pruning of the map, the functionality can be added. This is especially useful in the context of MLIR for implementing thread-local caching of context level objects that would otherwise have very high lock contention. This revision adds a thread local cache in the MLIRContext for attributes, identifiers, and types to reduce some of the locking burden. This led to a speedup of several seconds when compiling a somewhat large mlir module. Differential Revision: https://reviews.llvm.org/D89504
-
Richard Smith authored
-
Fangrui Song authored
-
Adrian Prantl authored
This patch also avoids hardcoding the clang options, which makes it less likely for them to become out-of-date. rdar://problem/63791367+66927829 Differential Revision: https://reviews.llvm.org/D89428
-
Fangrui Song authored
It needs more work: http://45.33.8.238/win/25999/step_11.txt
-
Amara Emerson authored
We'll need legalizer lower() support for the other types to work. Differential Revision: https://reviews.llvm.org/D89159
-
Arthur Eubanks authored
The NPM prints CGSCCs in a different way.
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Martin Storsjö authored
Use string() for convenience for testing where possible, but keep using native() for move tests where we want to check that no allocations are made, constructing a reference fs::path::string_type instead. Use the right value_type in a few places. Make the synop test check for the right types and for the expected preferred separator. Differential Revision: https://reviews.llvm.org/D89537
-
Benjamin Kramer authored
This should be semantically identical. Also avoids unused variable warnings in Release builds.
-
Scott Linder authored
Another attempt at this, see D59008 for previous attempt. Reviewed By: kzhuravl, t-tye Differential Revision: https://reviews.llvm.org/D89484
-
Teresa Johnson authored
This should fix a couple of debian bot failures: http://lab.llvm.org:8011/#builders/14/builds/380 http://lab.llvm.org:8011/#builders/109/builds/533 They disable building of the sanitizer, which memprof relies on. So disable building of memprof in that case.
-
Amara Emerson authored
Differential Revision: https://reviews.llvm.org/D89075
-
Amara Emerson authored
NEON is pretty limited in it's reduction support. As a first step add some basic rules for the legal types we can select. Differential Revision: https://reviews.llvm.org/D89070
-
Amara Emerson authored
In order to prevent the ExpandReductions pass from expanding some intrinsics before they get to codegen, I had to add a -disable-expand-reductions flag for testing purposes. Differential Revision: https://reviews.llvm.org/D89028
-
Louis Dionne authored
It doesn't appear to be a standard utility.
-
Vinicius Tinti authored
The prefix given to --prefix will be added to GNU absolute paths when used with --source option (source interleaved with the disassembly). This matches GNU's objdump behavior. GNU and C++17 rules for absolute paths are different. Differential Revision: https://reviews.llvm.org/D85024 Fixes PR46368. Differential Revision: https://reviews.llvm.org/D85024
-
Teresa Johnson authored
See RFC for background: http://lists.llvm.org/pipermail/llvm-dev/2020-June/142744.html Follow on companion to the clang/llvm instrumentation support in D85948 and committed earlier. This patch adds the compiler-rt runtime support for the memory profiling. Note that much of this support was cloned from asan (and then greatly simplified and renamed). For example the interactions with the sanitizer_common allocators, error handling, interception, etc. The bulk of the memory profiling specific code can be found in the MemInfoBlock, MemInfoBlockCache, and related classes defined and used in memprof_allocator.cpp. For now, the memory profile is dumped to text (stderr by default, but honors the sanitizer_common log_path flag). It is dumped in either a default verbose format, or an optional terse format. This patch also adds a set of tests for the core functionality. Differential Revision: https://reviews.llvm.org/D87120
-
Louis Dionne authored
-
Louis Dionne authored
Instead of having this script be part of the OSS-Fuzz repository, I think it makes more sense to have it alongside the rest of the fuzzing targets in libc++.
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D89558
-
- Oct 16, 2020
-
-
Jay Foad authored
If you use -stop-after or similar options, llc will normally print MIR. This patch checks for -filetype=null as a special case to disable MIR printing. As the comment says, "The Null output is intended for use for performance analysis ...", and I found this useful for timing a subset of the passes that llc runs without the significant overhead of printing MIR just to send it to /dev/null. Differential Revision: https://reviews.llvm.org/D89476
-
ahmedsabie authored
This trait simply adds a fold of f(f(x)) = f(x) when an operation is labelled as idempotent Reviewed By: rriddle, andyly Differential Revision: https://reviews.llvm.org/D89421
-
Matt Arsenault authored
This reverts commit eb9f7c28. Previously this was incorrectly handling linking of the contained type, so this merges the fixes from D88973.
-
Krzysztof Parzyszek authored
-
Hans Wennborg authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
This is more correctly handled by canEvaluateTruncated (one use checks etc.) and covers all the tests cases that were added for this fold.
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D89533
-
Martin Storsjö authored
This matches an existing marking in enum.path.format.pass.cpp. Differential Revision: https://reviews.llvm.org/D89534
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D89538
-
Martin Storsjö authored
[libcxx] [test] Use string() instead of native() as parameter to std::ifstream/ofstream in copy_file_large.pass.cpp This fixes building with libstdc++ for windows. MS STL has got ifstream/ofstream overloads that taken wide strings though. Differential Revision: https://reviews.llvm.org/D89539
-
Duncan P. N. Exon Smith authored
`SourceManager::createFileID` asserts that the given `FileEntry` is not null, so remove the logic that passed in `nullptr`. Since we just added the file to an in-memory FS via an API that cannot fail, use `llvm_unreachable` on the error path. Didn't use an `assert` since it seems cleaner semantically to check the error (and better, hypothetically, for updating the API to use `Expected` instead of `ErrorOr`). I noticed this incidentally while auditing calls to `createFileID`.
-
Peter Steinfeld authored
Calling "ASSOCATED(NULL()) was causing an internal check of the compiler to fail. I fixed this by changing the entry for "ASSOCIATED" in the intrinsics table to accept "AnyPointer" which contains a new "KindCode" of "pointerType". I also changed the function "FromActual()" to return a typeless intrinsic when called on a pointer, which duplicates its behavior for BOZ literals. This required changing the analysis of procedure arguments. While testing processing for procedure arguments, I found another bad call to `CHECK()` which I fixed. I made several other changes: -- I implemented constant folding for ASSOCIATED(). -- I fixed handling of NULL() in relational operations. -- I implemented semantic analysis for ASSOCIATED(). -- I noticed that the semantics for ASSOCIATED() are similar to those for pointer assignment. So I extracted the code that pointer assignment uses for procedure pointer compatibility to a place where it could be used by the semantic analysis for ASSOCIATED(). -- I couldn't figure out how to make the general semantic analysis for procedure arguments work with ASSOCIATED()'s second argument, which can be either a pointer or a target. So I stopped using normal semantic analysis for arguments for ASSOCIATED(). -- I added tests for all of this. Differential Revision: https://reviews.llvm.org/D88313
-