- Sep 04, 2023
-
-
Sam McCall authored
415d9e8c edited the generated html directly without updating the source of truth.
-
Adrian Kuegel authored
Differential Revision: https://reviews.llvm.org/D159422
-
Florian Hahn authored
Update VPBlendRecipe::print() to print the result directly, instead of relying on the stored Phi pointer. This brings the recipe in line with how other recipes are printed.
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D156371
-
Ingo Müller authored
The mix-in of the `MultiTileSizesOp` set the default value of its `divisor` argument. This repeats information from the tablegen defintion, is not necessary (since the generic code deals with `None` and default values), and has the risk of running out of sync without people noticing. This patch removes the setting of the value and forward `None` to the generic constructor instead. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D159416
-
Ingo Müller authored
This patch simplifies and improves the mix-in of the `TileOp`. In particular: * Accept all types of sizes (static, dynamic, scalable) in a single argument `sizes`. * Use the existing convenience function to dispatch different types of sizes instead of repeating the implementation in the mix-in. * Pass on `None` values as is of optional arguments to the init function of the super class. * Reformat with default indentation width (4 spaces vs 2 spaces). * Add a a test for providing scalable sizes. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D159417
-
Ingo Müller authored
This patch removes some manual conversion of mixed Python/attribute arguments to `I64ArrayAttr`s, which turned out to be unnecessary. Interestingly, this change does not depend on the additional attribute builders added in the (currently pending) https://reviews.llvm.org/D159403 patch. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D159419
-
Matthias Springer authored
`bufferize_to_allocation` does not supports ops with regions, unless `bufferize_destination_only` is set. In that case, only the operand is replaced with an allocation and wrapped in a `to_tensor` op. The error checking was too strict. Differential Revision: https://reviews.llvm.org/D159420
-
Florian Hahn authored
Add missing test coverage for selects with !dbg info.
-
Egor Zhdan authored
iOS/OSX-specific availability is a legacy of compiled API Notes which are not supported and were removed from Apple Clang in 2019 (see https://github.com/apple/llvm-project/commit/30fc70f349277a42e02550779b464b92a2f06c1c).
-
Tom Eccles authored
This is the last piece required for the loop versioning patch to work on code lowered via HLFIR. With this patch, HLFIR performance on spec2017 roms is now similar to the FIR lowering. Adding support for fir.array_coor means that many more loops will be versioned, even in the FIR lowering. So far as I have seen, these do not seem to have an impact on performance for the benchmarks I tried, but I expect it would speed up some programs, if the loop being versioned happened to be the hot code. The main difference between fir.array_coor and fir.coordinate_of is that fir.coordinate_of uses zero-based indices, whereas fir.array_coor uses the indices as specified in the Fortran program (starting from 1 by default, but also supporting non default lower bounds). I opted to transform fir.array_coor operations into fir.coordinate_of operations because this allows both to share the same offset calculation logic. The tricky bit of this patch is getting the correct lower bounds for the array operand to subtract from the fir.array_coor indices to get a zero-based indices. So far as I can tell, the FIR lowering will always provide lower bounds (shift) information in the shape operand to the fir.array_coor when non-default lower bounds are used. If none is given, I originally tried falling back to reading lower bounds from the box, but this led to misscompilation in SPEC2017 cam4. Therefore the pass instead assumes that if it can't already find an SSA value for the shift information, the default lower bound (1) should be used. A suspect the incorrect lower bounds in the box for the FIR lowering was already a known issue (see https://reviews.llvm.org/D158119). Differential Revision: https://reviews.llvm.org/D158597
-
David Green authored
This adds some basic fadd/fmul reduction costs for MVE/NEON. It reduces by halving the vector size until it it gets scalarized, with some additional costs for fp16 which may require extracting the top lanes. Differential Revision: https://reviews.llvm.org/D159367
-
Sergio Afonso authored
This reverts commit 823151f0.
-
Sander de Smalen authored
Otherwise these functions are not inlined when invoked from streaming functions. Reviewed By: paulwalker-arm Differential Revision: https://reviews.llvm.org/D159188
-
Sander de Smalen authored
If no frame-pointer is available and the compiler has scavenged a spill-slot in the callee-save area, the compiler may be forced to emit an 'addvl' inside the streaming-mode-changing call sequence when it needs to fill (reload) an FP register being passed to the call. We can avoid this entirely by disabling stack-slot scavenging when there are streaming-mode-changing call-sequences in the function. Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D159196
-
Biplob Mishra authored
-
Sjoerd Meijer authored
Fix the operand description: the update was in the wrong place. As a result the latency of the update was modelled incorrectly, it wasn't available as early as it should. This was visible in llvm-mca timeline views. This fixes the problem for the Neoverse V2, but the problem also affects the other Neoverse cores. Patch by: Ricardo Jesus Differential Revision: https://reviews.llvm.org/D159254
-
David Green authored
See D159367 and the followups.
-
Tejas Joshi authored
The following commit enabled the analysis of ranges for heap allocations: 22ca38da The range turns out to be empty in cases such as the one in test (which is [1,1)), leading to an assertion failure. This patch fixes for the same case. Fixes https://github.com/llvm/llvm-project/issues/63856 Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D159160
-
Carlos Galvez authored
…-delete So the purpose of the check is more clear. Update examples code to show compliant code. Fixes #65221 --------- Co-authored-by:Carlos Gálvez <carlos.galvez@zenseact.com>
-
Luke Lau authored
Now that the codegen for the expanded ISD::ROTL sequence has been improved, it's probably profitable to lower a shuffle that's a rotate to the vsll+vsrl+vor sequence to avoid a vrgather where possible, even if we don't have the vror instruction. This patch relaxes the restriction on ISD::ROTL being legal in lowerVECTOR_SHUFFLEAsRotate. It also attempts to do the lowering twice: Once if zvbb is enabled before any of the interleave/deinterleave/vmerge lowerings, and a second time unconditionally just before it falls back to the vrgather. This way it doesn't interfere with any of the above patterns that may be more profitable than the expanded ISD::ROTL sequence. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D159353
-
Martin Braenne authored
Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D159262
-
Martin Braenne authored
Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D159264
-
Nuno Lopes authored
-
Ingo Müller authored
-
Muhammad Omair Javaid authored
This reverts commit a0b0d749. It has broken following buildbots: https://lab.llvm.org/buildbot/#/builders/188/builds/34873 https://lab.llvm.org/buildbot/#/builders/245/builds/13538 https://lab.llvm.org/buildbot/#/builders/65/builds/11074
-
Martin Braenne authored
This makes `ExprToVal` dumping consistent with `LocToVal` dumping. Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D159274
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Amara Emerson authored
uses when looking for load/store users. This was a simple logic bug during translation of the equivalent function in SelectionDAG: ``` for (SDNode *Node : N->uses()) { if (auto *LoadStore = dyn_cast<MemSDNode>(Node)) { ``` -
Amara Emerson authored
The lookthrough int<->ptr cast tests and code were both wrongly checking the wrong register uses. This change is fixing and precommiting the test to prepare for the code fix.
-
X512 authored
Pick up a few more codegen parametres from downstream. The DWARF version matchesthe GCC config. DWARF version 4, Math Errno handling, ObjC ABI handling, and debug handling. Reviewed By: nielx Differential Revision: https://reviews.llvm.org/D159409
-
Amara Emerson authored
-
Martin Braenne authored
Reviewed By: ymandel, xazax.hun Differential Revision: https://reviews.llvm.org/D159261
-
Adrian Kuegel authored
Remove redundant .get() on a smart pointer.
-
Petr Hosek authored
The atomic shared library needs to be linked against builtins. The `add_compiler_rt_runtime` call already has `DEP builtins` but that only ensures that the `builtins` target is built before `clang_rt.atomic` but doesn't link against `clang_rt.builtins`, to do so we need to use `LINK_LIBS clang_rt.builtins`.
-
Christian Sigg authored
This is probably a bad idea, but it's only become a problem with properties and is easy to fix. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D159185
-
Kees Cook authored
This was deprecated in Clang 16 and scheduled for removal in Clang 18. Time to remove it. Reviewed By: nickdesaulniers, MaskRay Differential Revision: https://reviews.llvm.org/D159373
-
Chuanqi Xu authored
See the comment of https://reviews.llvm.org/D153114. The current signature will make the user to misunderstant that it will write files to the filesystem, while it is not true. This patch adds an overload to erase the concern. And the overload will be used in the support for modules in clangd.
-
Amara Emerson authored
[GlobalISel][NFC] Use GenericMachineInstrs in CombinerHelper::reassociationCanBreakAddressingModePattern().
-