- Oct 11, 2023
-
-
Valentin Clement (バレンタイン クレメン) authored
Add support for assumed shape arrays in lowering of the copy region of the firstprivate recipe. Information is passed in block arguments as it is done for the reduction recipe.
-
Florian Hahn authored
Extend the logic in addInfoForInductions to support decrementing inductions with a step of -1. Fixes #64881.
-
Sergey Kachkov authored
In some cases clobbering store can be safely skipped if it can only must or no alias with memory location and it writes the same value. This patch supports simple case when the value from memory location was loaded in the same basic block before the store and there are no modifications between them.
-
Sergey Kachkov authored
-
spupyrev authored
CDSort function reordering outperforms the existing default heuristic ( hfsort/C^3) in terms of the performance of generated binaries while being (almost) as fast. Thus, the suggestion is to change the default. The speedup is up to 1.5% perf for large front-end binaries, and can be moderate/neutral for "small" benchmarks. High-level **perf impact** on two selected binaries: clang-10 binary (built with LTO+AutoFDO/CSSPGO): wins on top of C^3 in [0.3%..0.8%] rocksDB-8 binary (built with LTO+CSSPGO): wins on top of C^3 in [0.8%..1.5%] More detailed measurements on the clang binary is at [here](https://reviews.llvm.org/D152834#4445042)
-
- Oct 10, 2023
-
-
Alex Bradbury authored
Refer to Zcmp rather than Zca. Also, this pass will only modify POP instructions (replacing with POPRET if possible).
-
Alex Bradbury authored
None of the Zc* extensions are experimental any more, so the comment was out of date.
-
Alex Bradbury authored
The file no longer contains any extensions that are still experimental.
-
Mitch Phillips authored
Integrating MTE globals on Android revealed a lot of cases where libraries are built as both archives and DSOs, and they're linked into fully static and dynamic executables respectively. MTE globals doesn't work for fully static executables. They need a dynamic loader to process the special R_AARCH64_RELATIVE relocation semantics with the encoded offset. Fully static executables that had out-of-bounds derived symbols (like 'int* foo_end = foo[16]') crash under MTE globals w/ static executables. So, LLD in its current form simply errors out when you try and compile a fully static executable that has a single MTE global variable in it. It seems like a much better idea to simply have LLD not do the special work for MTE globals in fully static contexts, and to drop any unnecessary metadata. This means that you can build archives with MTE globals and link them into both fully-static and dynamic executables.
-
chuongg3 authored
Legalize bigger types for i8 and i16 vector types for G_VECREDUCE_ADD
-
Amir Bishara authored
-lowering tosa reduce operations to linalg.reduce op which indicates explicit reduce operation. -the linalg reduce op doesn't have iterator types or indexing maps instead it has a reduction dimension which would provide the necessary information.
-
Krzysztof Drewniak authored
Per discussion on https://github.com/llvm/llvm-project/pull/68453 , the make_buffer_rsrc intrinsic was incorrectly marked noclobber. This commit fixes the issue.
-
Alexander Yermolovich authored
Right now DWARFContext for DWO/DWP that is created is not thread safe. Changed it so that thread safety is inherited from the main binary DWARFContext.
-
Guillaume Chatelet authored
The `release` flag is misleading and its semantics are not well defined. Originally this was meant to allow for different `LIBC_NAMESPACE` depending on whether the code was considered stabled and released or unstable. It appears that we may have a canary environment that is neither released or dev. As a consequence we move the `LIBC_NAMESPACE` definition to its own file and each environment can override this file with whatever makes sense.
-
JoelWee authored
The python generated code for ``` def StableHLO_CrossReplicaSumOp : StableHLO_Op<"cross-replica-sum", ``` fails because the python code `def cross-replica-sum...` is generated, which is not a valid python name. https://github.com/openxla/stablehlo/blob/main/stablehlo/dialect/StablehloOps.td#L2109
-
David Truby authored
This patch fixes an issue where x18 is used for passing pointer parameters with the nest attribute on Windows on AArch64. The x18 register is reserved in the WoA ABI so can't be used for this purpose. This is fixed by introducing a new Win64PCS calling convention that differs from the standard AAPCS only by not using x18 for nest parameters.
-
Christian Ulmann authored
This commit fixes a bug in the Mem2Reg operation erasure order. Replacing the topological order with a dominance based order ensures that no operation is removed before all its uses have been replaced. Additionally, the reliance on the `DenseMap` key order was eliminated by switching to a `MapVector`, that gives a deterministic iteration order. Example: ``` %ptr = alloca ... ... %val0 = %load %ptr ... // LOAD0 store %val0 %ptr ... %val1 = load %ptr ... // LOAD1 ```` When promoting the slot backing %ptr, it can happen that the LOAD0 was cleaned before LOAD1. This results in all uses of LOAD0 being replaced by its reaching definition, before LOAD1's result is replaced by LOAD0's result. The subsequent erasure of LOAD0 can thus not succeed, as it has remaining usages.
-
Ivan Butygin authored
WhileOp before/after block args types weren't converted, resulting in invalid IR.
-
David Green authored
Similar to D159254, this fixes the order of WriteAdr operands on post/pre-inc loads/stores in the Cortex-A55 scheduling model.
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D155548
-
Timm Bäder authored
ConstantExprs already have a value attached we can just return here. Differential Revision: https://reviews.llvm.org/D155548
-
Alex Voicu authored
This reverts commit 9b98ebb0.
-
Alex Voicu authored
This patch adds the LLVM changes needed for enabling HIP parallel algorithm offload on AMDGPU targets. What we do here is add two passes, one mandatory and one optional: 1. HipStdParAcceleratorCodeSelectionPass is mandatory, depends on CallGraphAnalysis, and implements the following transform: - Traverse the call-graph, and check for functions that are roots for accelerator execution (at the moment, these are GPU kernels exclusively, and would originate in the accelerator specific algorithm library the toolchain uses as an implementation detail); - Starting from a root, do a BFS to find all functions that are reachable (called directly or indirectly via a call- chain) and record them; - After having done the above for all roots in the Module, we have the computed the set of reachable functions, which is the union of roots and functions reachable from roots; - All functions that are not in the reachable set are removed; for the special case where the reachable set is empty we completely clear the module; 2. HipStdParAllocationInterpositionPass is optional, is meant as a fallback with restricted functionality for cases where on-demand paging is unavailable on a platform, and implements the following transform: - Iterate all functions in a Module; - If a function's name is in a predefined set of allocation / deallocation that the runtime implementation is allowed and expected to interpose, replace all its uses with the equivalent accelerator aware function, iff the latter is available; - If the accelerator aware equivalent is unavailable we warn, but compilation will go ahead, which means that it is possible to get issues around the accelerator trying to access inaccessible memory at run time; - We rely on direct name matching as opposed to using the new alloc-kind family of attributes and / or the LibCall analysis pass because some of the legacy functions that need replacing would not carry the former or be identified by the latter. Reviewed by: JonChesterfield, yaxunl Differential Revision: https://reviews.llvm.org/D155856 -
Timm Baeder authored
Handle those by just zero-initializing the result.
-
Nikita Popov authored
Pass SimplifyQuery instead of unpacked list of arguments.
-
Vladislav Khmelevsky authored
Add absent start & fini symbols, currently setted by bolt for runtime libraries at DT_INIT and DT_FINI. The proper tests would be added by the https://github.com/llvm/llvm-project/pull/67348 PR.
-
jeanPerier authored
When calling a statement function with a character actual argument with a constant length mismatching the dummy length, HLFIR lowering created an hlfir.declare with the actual argument length for the dummy, causing bugs when lowering the statement function expression. Ensure character dummies are always cast to the dummy type when lowering dummy declarations.
-
Job Noorman authored
This could happen, for example, when instrumenting an AArch64 binary on an x86 host because the instrumentation library is always built for the host. Note that this check will probably need to be refined in the future as merely having the same architecture does not guarantee objects can be linked. For example, on RISC-V, the float ABI of all objects should match.
-
Timm Baeder authored
isLive() is false for null pointers, so we need to special-case this here.
-
David Green authored
Similar to D159254, this fixes the order of WriteAdr operands on post/pre-inc loads/stores in the Cortex-A53 scheduling model.
-
Nikita Popov authored
Accept a SimplifyQuery instead of an unpacked list of arguments.
-
Nikita Popov authored
To allow reusing it between InstructionSimplify and ValueTracking.
-
Nikita Popov authored
When a SCEVCallbackVH is RAUWed, we currently do a def-use walk and remove dependent instructions from the ValueExprMap. However, unlike SCEVs usual invalidation, this does not forget memoized values. The end result is that we might end up removing a SCEVUnknown from the map, while that expression still has users. Due to that, we may later fail to invalide those expressions. In particular, invalidation of loop dispositions only does something if there is an expression for the value, which would not be the case here. Fix this by using the standard forgetValue() API, instead of rolling a custom variant. Fixes https://github.com/llvm/llvm-project/issues/68285.
-
LLVM GN Syncbot authored
-
Timm Bäder authored
This test doesn't do anything in that case. This broke some builders, e.g.: https://lab.llvm.org/buildbot/#/builders/245/builds/15150
-
Viktor Cseh authored
This checker reports cases where an array of polymorphic objects are deleted as their base class. Deleting an array where the array's static type is different from its dynamic type is undefined. Since the checker is similar to DeleteWithNonVirtualDtorChecker, I refactored that checker to support more detection types. This checker corresponds to the SEI Cert rule EXP51-CPP: Do not delete an array through a pointer of the incorrect type. Differential Revision: https://reviews.llvm.org/D158156
-
Viktor Cseh authored
This rename is done in a separate commit to preserve `git blame`, before implementing CXXArrayDeleteChecker and refactoring the file. Differential Revision: https://reviews.llvm.org/D158156
-
Nikita Popov authored
This reverts commit feea5db0. This causes significant compile-time regressions, even if EGPR is not used.
-
Martin Storsjö authored
-
Björn Pettersson authored
GetExprRange did not expect that very large shift counts when narrowing the range based on logical right shifts. So with inputs such as *a >> 123456789012345678901uwb it would hit assertions about trying to convert a too large APInt into uint64_t. This patch fixes that by using the APInt value when determining if we should reduce the range by the shift count or not.
-