- Jun 22, 2022
-
-
Craig Topper authored
Put it before the VL instead of as the first operand. I want to add passthru to more operands, but the commutable ones like VADD_VL require the commutable operands to be operand 0 and 1. So we can't have the passthru as operand 0 for those.
-
Philip Reames authored
This just adds some very basic vectorizer testing with both fixed and scalable vectorization enabled.
-
Philip Reames authored
This just adds some very basic vectorizer testing with both fixed and scalable vectorization enabled. For context, I just yesterday fixed a crash in costing of the splat_ptr example - see bbf3fd.
-
Arthur Eubanks authored
For the usage of std::max in the header. Speculative fix for https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-windows-x64/b8810806780048763729/overview reported in https://reviews.llvm.org/D125263.
-
Simon Pilgrim authored
We're slowly removing SelectionDAG::GetDemandedBits and replacing it with SimplifyMultipleUseDemandedBits, we no longer have any uses for the vector demanded elt variant.
-
Xing Xue authored
Summary: This patch adds _LIBCXXABI_FUNC_VIS to the definitions of the personality and helper routines for the state table based EH, now that the support of the visibility attribute is being added to AIX Clang. Currently an export list is generated in the absence of the visibility attribute support downstream. Reviewed by: MaskRay, daltenty Differential Revision: https://reviews.llvm.org/D126915
-
Fangrui Song authored
This reverts commit 90c9d41c. Keeping arm* LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on is sufficient to work around LLVM_ENABLE_RUNTIMES not working well with arm. It is more important for LLVM_ENABLE_PROJECTS and LLVM_ENABLE_RUNTIMES to match in the file hierarchy.
-
Jason Molenda authored
Michał's change in https://reviews.llvm.org/D127193 did a search & replace for a pattern that also appears in debugserver, but it shouldn't be done there.
-
Florian Hahn authored
In some cases, a recurrence splice instructions needs to be inserted between to regions, for example if the regions get re-arranged during sinking. Fixes #56146.
-
Daniel Bertalan authored
If ld64.lld was supplied an object file that had a `__debug_abbrev` or `__debug_str` section, but didn't have any compile unit DIEs in `__debug_info`, it would dereference an iterator pointing to the empty array of DIEs. This underlying issue started causing segmentation faults when parsing for `__debug_info` was addded in D128184. That commit was reverted, and this one fixes the invalid dereference to allow relanding it. This commit adds an assertion to `filter_iterator_base`'s dereference operators to catch bugs like this one. Ran check-llvm, check-clang and check-lld. Differential Revision: https://reviews.llvm.org/D128294
-
Nico Weber authored
No behavior change. In preparation for using a parallelFor() here. Differential Revision: https://reviews.llvm.org/D128295
-
Matt Arsenault authored
-
Matt Arsenault authored
This created a weird loop making the tested registers live out of the block, which I don't think is relevant to the purpose of the tests. This caused regressions when the validity queries are changed to use tests based whether the use instruction was a kill. If the register was live out for the loop, it was still live. I guess we could still do this in a narrow case where the value loops back, but that's most a pointlessly complex case to handle.
-
Joe Nash authored
gfx11 does not have SDWA Reviewed By: #amdgpu, rampitec Differential Revision: https://reviews.llvm.org/D128208
-
Craig Topper authored
After adding it to the table so the post-isel peephole can handle it.
-
Craig Topper authored
These can be handled by the post-isel peephole.
-
Nico Weber authored
It's in libSystem, so it doesn't bring in any new deps, and it's currently much faster than LLVM's current SHA256 implementation. Makes linking (arm64) Chromium Framework with ld64.lld 17% faster. See also PR56121. No behavior change. Differential Revision: https://reviews.llvm.org/D128290
-
Heejin Ahn authored
For non-mem-intrinsic and non-lifetime `CallBase`s, the current `isRemovable` function only checks if the `CallBase` 1. has no uses 2. will return 3. does not throw: https://github.com/llvm/llvm-project/blob/80fb7823367c1d105fcbc8f21b69205a0d68c859/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp#L1017 But we should also exclude invokes even in case they don't throw, because they are terminators and thus cannot be removed. While it doesn't seem to make much sense for `invoke`s to have an `nounwind` target, this kind of code can be generated and is also valid bitcode. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D128224
-
Haojian Wu authored
-
Valentin Clement authored
Add more diagnostics to fir.coordinate_of to provide better checking that the IR is sane. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D128255 Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com>
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D128053
-
Nikolas Klauser authored
Reviewed By: #libc, ldionne Spies: aheejin, libcxx-commits, xazax.hun Differential Revision: https://reviews.llvm.org/D127896
-
Michał Górny authored
Sponsored by: The FreeBSD Foundation
-
Nico Weber authored
No behavior change. Differential Revision: https://reviews.llvm.org/D128289
-
Martin Sebor authored
Remove the known limitation of the library function call folders to only work with top-level arrays of characters (as per the TODO comment in the code) and allows them to also fold calls involving subobjects of constant aggregates such as member arrays.
-
Michał Górny authored
Add a test verifying that plain 'D' packet correctly detaches all processes. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D127291
-
Michał Górny authored
Refactor the fork and vfork tests to reuse the code better, avoid unnecessary regexps and avoid unnecessary conversions between hex-strings and integers. Verify the server state after detaching. In particular, verify that the detached process' PID/TID pair is no longer valid, and that the correct process remains running. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D127290
-
Michał Górny authored
Fix ThreadStopInfo struct to include the signal number for all events. Since signo was not included in the details for fork, vfork and vforkdone stops, the code incidentally referenced the wrong union member, resulting in wrong signo being sent. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D127193
-
Michał Górny authored
Support adding a "pending callback" to the main loop, that will be called once after all the pending events are processed. This can be e.g. to defer destroying the process instance until its exit is fully processed, as suggested in D127500. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D128253
-
Chris Bieneman authored
In HLSL vectors are ext_vectors in all respects except that they support a constructor style syntax for initializing vectors. This change adds a translation of vector constructor arguments into initializer lists. This supports two oddities of HLSL syntax: (1) HLSL vectors support constructor syntax (2) HLSL vectors are expanded to constituate components in constructors Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D127802
-
Mahesh Ravishankar authored
This patch implements tile and fuse transformation for ops that implement the tiling interface. To do so, - `TilingInterface` needs a new method that generates a tiled implementation of the operation based on the tile of the result needed. - A pattern is added that replaces a `tensor.extract_slice` whose source is defined by an operation that implements the `TilingInterface` with a tiled implementation that produces the extracted slice in-place (using the method added to `TilingInterface`). - A pattern is added that takes a sequence of operations that implement the `TilingInterface` (for now `LinalgOp`s), tiles the consumer, and greedily fuses its producers iteratively. Differential Revision: https://reviews.llvm.org/D127809
-
Alexey Bataev authored
Fixed signedness warning.
-
Michał Górny authored
Implement the support for %Stop asynchronous notification packet format in LLGS. This does not implement full support for non-stop mode for threaded programs -- process plugins continue stopping all threads on every event. However, it will be used to implement asynchronous events in multiprocess debugging. The non-stop protocol is enabled using QNonStop packet. When it is enabled, the server uses notification protocol instead of regular stop replies. Since all threads are always stopped, notifications are always generated for all active threads and copied into stop notification queue. If the queue was empty, the initial asynchronous %Stop notification is sent to the client immediately. The client needs to (eventually) acknowledge the notification by sending the vStopped packet, in which case it is popped from the queue and the stop reason for the next thread is reported. This continues until notification queue is empty again, in which case an OK reply is sent. Asychronous notifications are also used for vAttach results and program exits. The `?` packet uses a hybrid approach -- it returns the first stop reason synchronously, and exposes the stop reasons for remaining threads via vStopped queue. The change includes a test case for a program generating a segfault on 3 threads. The server is expected to generate a stop notification for the segfaulting thread, along with the notifications for the other running threads (with "no stop reason"). This verifies that the stop reasons are correctly reported for all threads, and that notification queue works. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D125575
-
Mark de Wever authored
Reviewed By: ldionne, philnik, #libc, #libc_abi Differential Revision: https://reviews.llvm.org/D126667
-
Mahesh Ravishankar authored
This reverts commit ea755113 due to build failures.
-
Argyrios Kyrtzidis authored
[Support/BLAKE3] CMake: Check for `IS_X64` or `CMAKE_OSX_ARCHITECTURES` before adding the assembly files This should fix `clang-ppc64-aix` builder (https://lab.llvm.org/buildbot/#/builders/214)
-
John Regehr authored
llvm-reduce run its full pass sequence up to 5 times, instead of just once Differential Revision: https://reviews.llvm.org/D128284
-
Mahesh Ravishankar authored
This patch implements tile and fuse transformation for ops that implement the tiling interface. To do so, - `TilingInterface` needs a new method that generates a tiled implementation of the operation based on the tile of the result needed. - A pattern is added that replaces a `tensor.extract_slice` whose source is defined by an operation that implements the `TilingInterface` with a tiled implementation that produces the extracted slice in-place (using the method added to `TilingInterface`). - A pattern is added that takes a sequence of operations that implement the `TilingInterface` (for now `LinalgOp`s), tiles the consumer, and greedily fuses its producers iteratively. Differential Revision: https://reviews.llvm.org/D127809
-
serge-sans-paille authored
ExtractElement does not produce a vector out of a vector, so there's no need to call a gather once done. Fix #54469 Credits to npopov@redhat.com for the original approach. Differential Revision: https://reviews.llvm.org/D126012
-
Matheus Izvekov authored
Signed-off-by:
Matheus Izvekov <mizvekov@gmail.com> Differential Revision: https://reviews.llvm.org/D128112
-