- Dec 01, 2021
-
-
Matthias Springer authored
However, since CallOps have no aliasing OpResults, their OpOperands always bufferize out-of-place. This change removes `bufferizesToMemoryWrite` from `CallOpInterface`. This method was called, but its return value did not matter. Differential Revision: https://reviews.llvm.org/D114616
-
Shraiysh Vaishay authored
Fix for the case when there are no instructions in the entry basic block before the call to `createSections` Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D114143
-
Nikita Popov authored
BECounts are guaranteed to be integers nowadays.
-
Nikita Popov authored
Track which SCEVs are used as ExactNotTaken counts in BackedgeTakenInfo structures, so we can directly determine which loops need to be invalidated, rather than iterating over all BECounts. This gives a small compile-time improvement on average, but the motivation here is more to ensure there are no degenerate cases, if the number of backedge taken counts is large. Differential Revision: https://reviews.llvm.org/D114784
-
Dylan McKay authored
I always forget this variable, and the distinction between 'LLVM_TARGET_ARCH', and this variable is only documented on the 'cross compiling' page, which I never spot and always end up searching through the codebase for. This patch adds the variable to the Sphinx CMake documentation so that it is easily findable in the official LLVM docs. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D96014
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D114852
-
Florian Hahn authored
This allows for better optimization of 'stores-of-existing-values' and possibly helps passes further down the pipeline. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D113712
-
Guillaume Chatelet authored
-
Kiran Chandramohan authored
For unimplemented patterns we revert to using TODO hard failures instead of notifyMatchFailure. For fir.select_type revert to using mlir::emiterror. For the fir.embox TODO on a type with len params we cannot add a test since the type cannot be converted to llvm. Adding negative tests using not and checking for the error message. TODO exits with an error in a build without assertion but aborts in a build with assertions. Abort requires using not with the --crash option. The two different usages of not is handled by using a custom command %not_todo_cmd which is converted to not or not --crash depending on the presence or absence of assertions. Using llvm-config to check the presence of assertions. Reviewed By: clementval, awarzynski Differential Revision: https://reviews.llvm.org/D114371
-
Chuanqi Xu authored
-
Valentin Clement authored
This patch introduces a bunch of builder functions to create function calls to runtime reduction functions. This patch is part of the upstreaming effort from fir-dev branch. This patch failed previously because a macro was missing. Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D114460 Co-authored-by:
Jean Perier <jperier@nvidia.com> Co-authored-by:
mleair <leairmark@gmail.com>
-
Markus Lavin authored
Fix printing of LoopNestPasses when using the opt pipeline printer option -print-pipeline-passes. Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D114771
-
Thomas Raoux authored
The new affine map generated by linearizeCollapsedDims should not drop dimensions. We need to make sure we create a map with at least as many dimensions as the source map. This prevents FoldProducerReshapeOpByLinearization from generating invalid IR. This solves regression in IREE due to https://github.com/llvm/llvm-project/commit/e4e4da86aff5606ef792d987a3ec85639219228c Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D114838 This reverts commit 9a844c2a.
-
MaheshRavishankar authored
This reverts commit bc38673e.
-
MaheshRavishankar authored
The new affine map generated by linearizeCollapsedDims should not drop dimensions. We need to make sure we create a map with at least as many dimensions as the source map. This prevents FoldProducerReshapeOpByLinearization from generating invalid IR. This solves regression in IREE due to https://github.com/llvm/llvm-project/commit/e4e4da86aff5606ef792d987a3ec85639219228c Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D114838
-
Sergey Dmitriev authored
This patch changes clang-offload-bundler to use the original file extension for the device archive member when unbundling archives instead of printing a warning and defaulting to ".o". Differential Revision: https://reviews.llvm.org/D114776
-
Qiu Chaofan authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D110616
-
Vitaly Buka authored
Compress by factor 4x, takes about 10ms per 8 MiB block. Depends on D114498. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D114503
-
Snehasish Kumar authored
The first 8b of each raw profile section need to be aligned to 8b since the first item in each section is a u64 count of the number of items in the section. Summary of changes: * Assert alignment when reading counts. * Update test to check alignment, relax some size checks to allow padding. * Update raw binary inputs for llvm-profdata tests. Differential Revision: https://reviews.llvm.org/D114826
-
Jonas Devlieghere authored
See ongoing discussion in https://reviews.llvm.org/D112603.
-
Phoebe Wang authored
-
Jacques Pienaar authored
-
Vitaly Buka authored
Depends on D114494. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D114495
-
Craig Topper authored
The V extension supports .vx instructions for integer division and remainder so we should sink splats for that operand.
-
Kent Ross authored
Update a couple authors, differentials, and completed projects for operator<=> implementation Reviewed By: #libc, Mordante, Quuxplusone, ldionne Differential Revision: https://reviews.llvm.org/D114682
-
modimo authored
Allow toggling of -fnew-infallible so last instance takes precedence Testing: ninja check-all Reviewed By: bruno Differential Revision: https://reviews.llvm.org/D113523
-
Mircea Trofin authored
Piping the input to llc avoids that (i.e. llc .... < %s vs llc ... %s)
-
Vitaly Buka authored
Add Compression::Test type which just pretends packing, but does nothing useful. It's only called from test for now. Depends on D114493. Reviewed By: kstoimenov Differential Revision: https://reviews.llvm.org/D114494
-
Aart Bik authored
Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D114822
-
wlei authored
Due to the debug info merging, there may have some contexts with zero probe id, we should truncate the context to avoid misleading pre-inliner. Reviewed By: hoy, wenlei Differential Revision: https://reviews.llvm.org/D114284
-
Vincent Lee authored
Tools such as `llvm-objdump` or `llvm-readobj` support indirect symbol tables. Here, support it for `obj2yaml` and `yaml2obj`. Reviewed By: jhenderson, drodriguez Differential Revision: https://reviews.llvm.org/D114410
-
wlei authored
In order to support generating profile with FS discriminator, three kind of changes are done in llvm-profgen: 1) Dissassemble .rodata section to check if FS discriminator var ('"__llvm_fs_discriminator__"') exists and set the corresponding flag in the binary. 2) Change the discriminator decoding in `getBaseDiscriminator` and `getDuplicationFactor`. 3) set true for `FunctionSamples::ProfileIsFS` to enable FS functionality in ProfileData. Reviewed By: xur, hoy, wenlei Differential Revision: https://reviews.llvm.org/D113296 -
Kazushi (Jam) Marukawa authored
When OpenMP is compiled as a part runtimes for multiple targets, openmp is compiled under build/runtimes/runtimes-arch-unknown-linux-gnu-bins directory. Old implementation treats this directory name as errors. This patch adds a guard like "[Uu]known[^-]". Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D114346
-
Aart Bik authored
Reviewed By: bixia, wrengr Differential Revision: https://reviews.llvm.org/D114820
-
Peter Klausler authored
A quick fix last week to the shared library build caused the predicate IsCoarray(const Symbol &) to be moved from Semantics to Evaluate. This patch completes that move in a way that properly combines the existing IsCoarray() tests for expressions and other object with the test for a symbol. Differential Revision: https://reviews.llvm.org/D114806
-
Stephen Neuendorffer authored
This reverts commit 29a50c58. After LLVM lowering, the original patch incorrectly moved alignment information across an unconstrained GEP operation. This is only correct for some index offsets in the GEP. It seems that the best approach is, in fact, to rely on LLVM to propagate information from the llvm.assume() to users. Thanks to Thomas Raoux for catching this.
-
modimo authored
We've found that when profiling, counts are only generated for the real definition of constructor aliases (C2 in mangled name). However, when compiling the C1 version is present at the callsite and leads to a lack of counts due to this aliasing. This causes us to miss out on inlining an otherwise hot constructor. -mconstructor-aliases is AFAICT an optimization, so having a disabling flag if wanted seems valuable. Testing: ninja check-all Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D114130
-
Mircea Trofin authored
We'll move ExtraRegInfo to the RegAllocEvictionAdvisor subsequently. This change prepares for that by factoring all accesses. RFC: https://lists.llvm.org/pipermail/llvm-dev/2021-November/153639.html Differential Revision: https://reviews.llvm.org/D114759
-
Tarique Islam authored
A big-endian version of vpermxor, named vpermxor_be, is added to LLVM and Clang. vpermxor_be can be called directly on both the little-endian and the big-endian platforms. Reviewed By: nemanjai Differential Revision: https://reviews.llvm.org/D114540
-
Julian Lettner authored
We would like to use TLS to store the ThreadState object (or at least a reference ot it), but on Darwin accessing TLS via __thread or manually by using pthread_key_* is problematic, because there are several places where interceptors are called when TLS is not accessible (early process startup, thread cleanup, ...). Previously, we used a "poor man's TLS" implementation, where we use the shadow memory of the pointer returned by pthread_self() to store a pointer to the ThreadState object. The problem with that was that certain operations can populate shadow bytes unbeknownst to TSan, and we later interpret these non-zero bytes as the pointer to our ThreadState object and crash on when dereferencing the pointer. This patch changes the storage location of our reference to the ThreadState object to "real" TLS. We make this work by artificially keeping this reference alive in the pthread_key destructor by resetting the key value with pthread_setspecific(). This change also fixes the issue were the ThreadState object is re-allocated after DestroyThreadState() because intercepted functions can still get called on the terminating thread after the THREAD_TERMINATE event. Radar-Id: rdar://problem/72010355 Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D110236
-