- Apr 19, 2023
-
-
OCHyams authored
Buildbot: https://buildkite.com/llvm-project/upstream-bazel/builds/ 59967#01879985-8d44-4041-9cd0-a1e41371208e See https://reviews.llvm.org/D148536
-
Jay Foad authored
-
Sam McCall authored
-
Benjamin Kramer authored
The code was inserting a new cast, discarding it, then inserting it again. The self-cast issue is the root of #62135 because it would end up dropping the loop and inserting an invalid cast to itself. As far as I can tell tensor.cast with the same src and dst types is not invalid but it can't really be tested in isolation as it's immediately folded. Fixes #62135 Differential Revision: https://reviews.llvm.org/D148714
-
Jay Foad authored
-
Sam McCall authored
With -dataflow-log=/dir we will write /dir/0.html etc for each function analyzed. These files show the function's code and CFG, and the path through the CFG taken by the analysis. At each analysis point we can see the lattice state. Currently the lattice state dump is not terribly useful but we can improve this: showing values associated with the current Expr, simplifying flow condition, highlighting changes etc. (Trying not to let this patch scope-creep too much, so I ripped out the half-finished features) Demo: https://htmlpreview.github.io/?https://gist.githubusercontent.com/sam-mccall/1746985bf13406bd19181af281aea9ff/raw/9718fdd48406dabccb3092acd983b4bd55da9dfa/analysis.html Differential Revision: https://reviews.llvm.org/D146591
-
Andrew Gozillon authored
The omp::FlagsAttr contains OpenMP RTL flags given by a user to the compiler and a frontend (flang currently) then populates the omp::FlagsAttr which will then lower these to LLVM globals which are utilised by the OpenMP runtime. Reviewers: jdoerfert Differential Revision: https://reviews.llvm.org/D147344
-
David Green authored
As far as I can tell this code is never used, as the pattern recognised by checkHighLaneIndex (an duplane with insert_subvec and extract_subvec) will not be generated any more. There are no tests that change from removing it (including the clang neon tests), and it didn't appear to come up in any benchmarks I ran. There are already existing tablegen patterns for MLA with index and s/umull with index. Removing it also prevents it from causing problems for SVE, as in #62151. Differential Revision: https://reviews.llvm.org/D148646
-
Dinar Temirbulatov authored
It looks like it is still profitable to accept a transformable to a legal vector type, not just a legal vector, as long as vector elements are the same between two of those types. Differential Revision: https://reviews.llvm.org/D148229
-
OCHyams authored
This reverts commit 7674ae72 which reverts D146987. See https://reviews.llvm.org/D146987 for issues.
-
Joseph Huber authored
We will want to test the GPU `libc` with multiple threads in the future. This patch adds the `--threads` and `--blocks` option to set the `x` dimension of the kernel. Using CUDA terminology instead of OpenCL for familiarity. Depends on D148288 D148342 Reviewed By: jdoerfert, sivachandra, tra Differential Revision: https://reviews.llvm.org/D148485
-
Joseph Huber authored
The GPU has many features that can only be accessed through builtin or intrinsic functions. Furthermore, these functions are unique for each GPU target. This patch outlines an interface to create a common `libc` interface to access these. Currently I only implement a function for the CUDA equivalent of `blockIdx.x`. More will be added in the future. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D148635
-
Alexey Bataev authored
If the partial matching is found and some other scalars must be inserted, need to account the cost of the extractelements, transformed to shuffles, and/or reused entries and calculate the cost of inserting constants properly into the non-poison vectors. Also, fixed the cost calculation for final gather/buildvector sequence. Differential Revision: https://reviews.llvm.org/D148362
-
Marco Elver authored
To avoid false positives, respect no_sanitize("thread") when atomics metadata is enabled. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D148694 -
LLVM GN Syncbot authored
-
Sam McCall authored
DataflowAnalysisContext has a few too many responsibilities, this narrows them. It also allows the Arena to be shared with analysis steps, which need to create Values, without exposing the whole DACtx API (flow conditions etc). This means Environment no longer needs to proxy all these methods. (For now it still does, because there are many callsites to update, and maybe if we separate bool formulas from values we can avoid churning them twice) In future, if we untangle the concepts of Values from boolean formulas/atoms, Arena would also be responsible for creating formulas and managing atom IDs. Differential Revision: https://reviews.llvm.org/D148554
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
-
David Spickett authored
efd64c2f added these.
-
Enna1 authored
[hwasan] provide a runtime flag for printing remaining threads in error report as an extra information This patch adds a runtime flag `print_live_threads_info`, which defaults to true, controls whether or not prints remaining threads in error report as an extra information. We(ByteDance) are in the process of enabling hwasan for our server-side applications on AArch64/Linux, these server-side applications have thousands of threads, so it is nice to have this option. Reviewed By: fmayer Differential Revision: https://reviews.llvm.org/D148513
-
OCHyams authored
Linking LLVMCore failed when building D148536 with shared libs enabled: https://lab.llvm.org/buildbot/#/builders/121/builds/29766 Make isPointerOffset a Value method and rename it to getPointerOffsetFrom. Reviewed By: jmorse Differential Revision: https://reviews.llvm.org/D148698
-
Martin Storsjö authored
Don't link libc++abi separately in addition to the main -lc++; in mingw build configs, libc++abi is always bundled into libc++ (via LIBCXX_ENABLE_STATIC_ABI_LIBRARY). In the case of a shared linked libc++, linking a separate static libc++abi leads to linker errors. Differential Revision: https://reviews.llvm.org/D147638
-
Martin Storsjö authored
With current versions of mingw-w64 headers, code following assert(false) isn't considered unreachable - thus add a dummy "return nullptr;", to avoid warnings (treated as errors) for a missing return statement. The root cause does get fixed further upstream in mingw-w64 in https://github.com/mingw-w64/mingw-w64/commit/1690994f515910a31b9fb7c7bd3a52d4ba987abe though. Differential Revision: https://reviews.llvm.org/D147860
-
Martin Storsjö authored
This matches the corresponding change to libcxx headers in dfa88927. This avoids needing to define _LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS when building libcxxabi tests, for two reasons: - It defaults to normal linkage (as opposed to dllimport), fixing linking of a static library version of libcxx/libcxxabi - It avoids issues with using dllimport declarations on symbols when including cxxabi implementations into the testcase itself Differential Revision: https://reviews.llvm.org/D148441
-
Hassnaa Hamdi authored
Add cost for extending to illegal scalable vector types. Add testing file for the extend operations. Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D142456
-
Martin Liska authored
Otherwise one gets the following warning with GCC: warning: ignoring ‘#pragma clang diagnostic’ [-Wunknown-pragmas] Differential Revision: https://reviews.llvm.org/D148695
-
pvanhout authored
More specifically make it more talkative when it's looking at the users of an alloca to promote it to a vector. A common failure point of the pass is unknown or weird users of the alloca. While debugging issues related to this pass one of the first thing I usually did was to add logs to see how the users were being handled. Having such logs in directly seems to be a nice addition. Reviewed By: arsenm, rampitec Differential Revision: https://reviews.llvm.org/D148629
-
David Spickett authored
distutils is deprecated and shutil.which is the suggested replacement for this function. https://peps.python.org/pep-0632/#migration-advice https://docs.python.org/3/library/shutil.html#shutil.which which was added in 3.3 (https://docs.python.org/3/library/shutil.html#shutil.which) and LLVM requires at least 3.6 (https://llvm.org/docs/GettingStarted.html#software). Reviewed By: delcypher, vitalybuka Differential Revision: https://reviews.llvm.org/D148528
-
OCHyams authored
This reverts commit fca3e8e0. Buildbot: https://lab.llvm.org/buildbot/#/builders/121/builds/29766
-
Jay Foad authored
This reverts parts of D123693. The functionality of allowing unsupported intrinsics to select has been superseded by D139000 "Remove function with incompatible features". Retain assembler/disassembler support for v_illegal on GFX10+ only, where it is documented. Differential Revision: https://reviews.llvm.org/D148127
-
terrydang authored
The cmake command contained a duplicate CMAKE_BUILD_TYPE option in the section "Compiling the LLVM Suite Source Code".
-
Guillaume Chatelet authored
These sequence of calls don't really make sense for head_tail and loop_and_tail.
-
Luke Lau authored
If we're concatenating several smaller loads separated by a stride, we can try and increase the element size and perform a strided load. For example: ``` concat_vectors (load v4i8, p+0), (load v4i8, p+n), (load v4i8, p+n*2), (load v4i8, p+n*3) => vlse32 p, stride=n, VL=4 ``` This pattern can be produced by the SLP vectorizer. A special case is when the stride is exactly equal to the width of the vector, in which case it can be converted into a single consecutive vector load. For example: ``` concat_vectors (load v4i8, p), (load v4i8, p+4), (load v4i8, p+8), (load v4i8, p+12) => vle8 p, VL=16 ``` Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D147713
-
Luke Lau authored
These patterns of concat_vector nodes of loads can be combined into widened vector loads or a strided vector loads. Co-authored-by:
Philip Reames <preames@rivosinc.com> Differential Revision: https://reviews.llvm.org/D147712
-