- Jul 07, 2023
-
-
Ashay Rane authored
The `MapVector` type stores key-value pairs in a vector, which, when resized, copies the entries and destroys the old ones. This causes the underlying operations to be deleted, subsequently causing segfaults. This patch makes the `mappings` map type refer to a shared pointer instead, so that resizing the vector doesn't call the operations' destructors. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D154511
-
Craig Topper authored
vwcvt.f.x doesn't use rounding mode. The integer value fits in the mantissa of a 2x larger FP type so no rounding is required. I've remove the Uses = [FRM] that is also not needed. I deleted the isel patterns. Alternatively, we could keep them and drop the rounding mode immediate. The patterns are currently untested so I chose to delete them. If they become needed in the future, we can decide then if we should have the patterns or teach the node creation to use the non-RM form for widening. This reverts part of D142102. Reviewed By: luke Differential Revision: https://reviews.llvm.org/D154653
-
Alex Brachet authored
-
Aaron Ballman authored
This adds AMDGPUSupport to the index page to address the issue found by: https://lab.llvm.org/buildbot/#/builders/92/builds/46936
-
Alex Brachet authored
-
Qiu Chaofan authored
Count of input operands affect pipeline forwarding in scheduling model. Previous Power10 model definition arranges some instructions into incorrect groups, by counting the wrong number of input operands. This patch updates the model, setting the input operands count correctly by excluding irrelevant immediate operands and count memory operands of load instructions correctly. Reviewed By: shchenz Differential Revision: https://reviews.llvm.org/D153842
-
Alex Zinenko authored
Mostly the same logic applies, with a different rank. Additionally expose the logic to do identify contraction dimensions and contraction-like bodies as independent transform ops. This allows us to recognize "generic" operations and not only the named ones. Rework the contraction body matching logic to no longer rely on contraction operations beign uniquely named. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D154498
-
Corentin Jabot authored
-
cor3ntin authored
-
Yaxun (Sam) Liu authored
Reviewed by: Matt Arsenault, Johannes Doerfert, Jacob Lambert Differential Revision: https://reviews.llvm.org/D154133
-
Luke Lau authored
As noted by @reames, we should be checking that the memory access is aligned to the element size (or the unaligned vector memory access feature is enabled) before lowering vlseg/vsseg intrinsics via the interleaved access pass. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D154536
-
Luke Lau authored
Reviewed By: reames Differential Revision: https://reviews.llvm.org/D154535
-
spupyrev authored
We are brining a new algorithm for function layout (reordering) based on the call graph (extracted from a profile data). The algorithm is an improvement of top of a known heuristic, C^3. It tries to co-locate hot and frequently executed together functions in the resulting ordering. Unlike C^3, it explores a larger search space and have an objective closely tied to the performance of instruction and i-TLB caches. Hence, the name CDS = Cache-Directed Sort. The algorithm can be used at the linking or post-linking (e.g., BOLT) stage. This diff modifies the existing data structures to facilitate the implementation (down the stack). This is a no-op change. Reviewed By: hoy Differential Revision: https://reviews.llvm.org/D152833
-
Nikita Popov authored
The successor is unreachable if either this is the only edge, or this is an edge into a loop, in which case other predecessors don't matter. This is exactly what the edge dominance check does.
-
Alex Brachet authored
This reverts commit 5a67fa2b.
-
Matt Arsenault authored
This was supposed to document the new PM limitation but was deleted in fb4113ef Switch to generated checks since that's more reliable than XFAIL, and just preserve the preferred results as comments.
-
Alex Brachet authored
-
-
Denis Revunov authored
The issue was caused by the absence of placement new definition. It worked for clang and thus passed Phabricator checks, but broke when compiled with GCC on buildbot. Full problem description: https://reviews.llvm.org/D153771#4468239 Original patch description: In absence of instrumentation-file-append-pid option, global allocator uses shared pages for allocation. However, since it is a global variable, it gets COW'd after fork if instrumentation-sleep-time is used, or if a process forks by itself. This means it handles the same pages to every process which causes hash table corruption. Thus, if we want shared pages, we need to put the allocator itself in a shared page, which we do in this commit in __bolt_instr_setup. I also added a couple of assertions to sanity-check the hash table. Reviewed By: rafauler, Amir Differential Revision: https://reviews.llvm.org/D153771
-
Matthias Springer authored
This transform op runs the verifier on the targeted payload ops. It is for debugging only. Differential Revision: https://reviews.llvm.org/D154711
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
This avoids computing the dominator tree by removing the simplifyInstruction use. This was applying simplification with some kind of questionable load-store forwarding and looking for the global. This had to have been an ancient hack copied from previous backends. In the OpenCL case, this is always emitted as required the direct global reference anyway.
-
Nikita Popov authored
We only catch this case on the second InstCombine iteration.
-
Joachim Jenke authored
The OpenMP specification mentions that omp_test_lock and omp_test_nest_lock dispatch OMPT callbacks with ompt_mutex_test_lock and ompt_mutex_test_nest_lock for their kind respectively. Previously, the values ompt_mutex_lock and ompt_mutex_nest_lock were used. This could cause issues in application relying on the kind to correctly determine lock states. This commit changes the kind to the expected ones. Also update callback.h and OMPT tests to reflect this change. Patch prepared by Thyre Differential Review: https://reviews.llvm.org/D153028 Differential Review: https://reviews.llvm.org/D153031 Differential Review: https://reviews.llvm.org/D153032
-
Felipe de Azevedo Piovezan authored
This function does a _lot_ of different things: 1. Parses a DIE, 2. Builds an ExpressionList 3. Figures out lifetime of variable 4. Remaps addresses for debug maps 5. Handles external variables 6. Figures out scope of variables A lot of this functionality is coded in a complex nest of conditions, variables that are declared and then initialized much later, variables that are updated in multiple code paths. All of this makes the code really hard to follow. This commit attempts to improve the state of things by factoring out (3), adding documentation on how the expression list is built, and by reducing the scope of variables. Differential Revision: https://reviews.llvm.org/D154513
-
Nikita Popov authored
-
Aaron Ballman authored
This removes links to rdar, which is an internal bug tracker that the community doesn't have visibility into. See further discussion at: https://discourse.llvm.org/t/code-review-reminder-about-links-in-code-commit-messages/71847
-
Renato Golin authored
I've been trying to come up with a simple and clean implementation for ReLU. TOSA uses `clamp` which is probably the goal, but that means table-gen to make it efficient (attributes, only lower `min` or `max`). For now, `max` is a reasonable named op despite ReLU, so we can start using it for tiling and fusion, and upon success, we create a more complete op `clamp` that doesn't need a whole tensor filled with zeroes or ones to implement the different activation functions. As with other named ops, we start "requiring" type casts and broadcasts, and zero filled constant tensors to a more complex pattern-matcher, and can slowly simplify with attributes or structured matchers (ex. PDL) in the future. Differential Revision: https://reviews.llvm.org/D154703
-
Sam McCall authored
This fixes -Werror -Wdeprecated builds See D153469
-
Matt Arsenault authored
The problem here is overflow or underflow which would have occurred in the inner operation, which the exponent offsetting avoids. We can do this if we know the two exponents are in the same direction, or reassoc flags allow unsafe reassociates.
-
Matt Arsenault authored
-
Matt Arsenault authored
Pass all the optional arguments to enable assumes.
-
iambrj authored
This patch implements range and domain composition for PresburgerRelations Reviewed By: Groverkss Differential Revision: https://reviews.llvm.org/D154444
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
Nico Weber authored
This reverts commit 460a2244. It breaks building on macOS, and it was landed with a review URL pointing to some Facebook-internal service. Also reverts a bunch of follow-ups: Revert "[BOLT][DWARF] Don't check string offsets" This reverts commit f9d6f48c. Revert "[BOLT][DWARF] Change to process and write out TUs first then CUs in batches" This reverts commit 88e95c1e. Revert "[BOLT][DWARF] Output DWO files as they are being processed" This reverts commit 46ca2e3f. Revert "[BOLT][DWARF] Don't check string offsets" This reverts commit cfe4a4b0. Revert "[BOLT][DWARF] Numerous fixes for a new DWARFRewriter" This reverts commit 2701a661.
-
Joachim Jenke authored
OpenMP 5.1 replaced callback ompt_callback_master_t by ompt_callback_masked_t. In order to stick to the standard, the implementation is updated accordingly. Patch prepared by Semih Burak Differential Revision: https://reviews.llvm.org/D112798
-
Joachim Jenke authored
In the functions ompt_multiplex_get_own_ompt_data and ompt_multiplex_get_client_ompt_data in addition to data being NULL, also the void pointer field "ptr" of "data" could be NULL, leading to a subsequent segfault. This patch add the corresponding checks. Patch prepared by Semih Burak Differential Revision: https://reviews.llvm.org/D112806
-