- Sep 28, 2023
-
-
Vitaly Buka authored
OSX fails to compiler with -fsanitize=hwaddress. Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=1486833
-
Arthur Eubanks authored
With 7aab12e1, the test is no longer relevant, but the patch is still good to have.
-
LLVM GN Syncbot authored
-
Fangrui Song authored
The function reordering algorithm added by https://reviews.llvm.org/D152834 and used by BOLT (https://reviews.llvm.org/D153039) is untested. Add some tests at the appropriate layer. Depends on D159526 Differential Revision: https://reviews.llvm.org/D159527
-
jeanPerier authored
15.6.2.6 point 11/12/13 tells that entries do inherit the RECURSIVE/PURE/ELEMENTAL aspects from the main entry, but nothing as such is said for BIND(C). It seems each entry can independently have BIND(C) or not. Update characterization to not propagate this info in-between entries. Add a lowering test for a tricky case of the character return where the return ABI is different for the result with and without BIND(C), but the results storage should be associated regardless of the ABI.
-
Sam McCall authored
-
Luke Lau authored
Vector pseudos with scalar operands only use the lower SEW bits (or less in the case of shifts and clips). This patch accounts for this in hasAllNBitUsers for both SDNodes in RISCVISelDAGToDAG. We also need to handle this in RISCVOptWInstrs otherwise we introduce slliw instructions that are less compressible than their original slli counterpart.
-
diggerlin authored
since we landed the patch `https://reviews.llvm.org/D139864 [llvm-cxxfilt] Do not consider the prefix dot as part of the demangled symbol name`. we can simply the code on the llvm-nm demanlge by using the llvm::demangle directly. --------- Co-authored-by:
zhijian <zhijian@ca.ibm.com>
-
Sam McCall authored
This reverts commit 491b2810. This change broke valid code and generated incorrect diagnostics, see https://reviews.llvm.org/D155064
-
JolantaJensen authored
This patch adds sleefgnuabi and ArmPL vector libraries to testing of InjectTLIMappings pass.
-
Daniel Woodworth authored
Barrier removal in OpenMPOpt normally removes barriers by proving that they are redundant with barriers preceding them. However, it can't do this with the "pseudo-barrier" at the end of kernels because that can't be removed. Instead, it removes the barriers preceding the end of the kernel which that end-of-kernel barrier is redundant with. However, these barriers aren't always redundant with the end-of-kernel barrier when loops are involved, and removing them can lead to incorrect results in compiled code. This change fixes this by requiring that these pre-end-of-kernel barriers also have the kernel end as a unique successor before removing them. It also changes the initialization of `ExitED` for kernels since the kernel end is not an aligned barrier.
-
Aart Bik authored
This adds two cuSparse formats to the GPU dialect support. Together with proper lowering and runtime cuda support. Also fixes a few minor omissions.
-
Nathan Gauër authored
Typo fix. Signed-off-by:Nathan Gauër <brioche@google.com>
-
Simon Pilgrim authored
-
Vitaly Buka authored
-
jeffreytan81 authored
This patch implements the thread local storage support for linux (https://github.com/llvm/llvm-project/issues/28766). TLS feature is originally only implemented for Mac. With my previous patch to enable `fs_base` register for Linux (https://reviews.llvm.org/D155256 ), now it is feasible to implement this feature for Linux. The major changes are: * Track the main module's link address during launch * Fetch thread pointer from `fs_base` register * Create register alias for thread pointer * Read pthread metadata from target memory instead of process so that it works for coredump With the patch the failing test is passing now. Note: I am only enabling this test for Mac and Linux because I do not have machine to test for FreeBSD/NetBSD. --------- Co-authored-by:
jeffreytan81 <jeffreytan@fb.com>
-
- Sep 27, 2023
-
-
Arthur Eubanks authored
This was merged after a different change caused the test to fail in the meantime.
-
Nick Desaulniers authored
Because `x0` is not listed in the clobber list, regalloc could (one day when #20571 is fixed) allocate `$0` to `x0`: ldr x0, x0 This will produce an error when validating the instruction. The intent of this test FWICT is to check that the parameter in w0 is stored to a stack slot using w0, since this target triple is the exotic arm64_32 (ILP32). Update the test to simply use "m" constraint. The clobber list is underconstrained otherwise.
-
Slava Zakharin authored
I extended the "closure" of the device code containing the initial transformational.cpp. The device side of the library should not be complete at least for some APIs. For example, I tested with C OpenMP code calling BesselJnX0 with a nullptr descriptor that failed with a runtime error when executing on a GPU. I added `--expt-relaxed-constexpr` for NVCC compiler to avoid multiple warnings about missing `__attribute__((device))` on constexpr methods coming from C++ header files.
-
Jay Foad authored
Use LegalizerInfo::isLegalOrCustom instead. Differential Revision: https://reviews.llvm.org/D116807
-
Alexey Bataev authored
Need to clear MultiNodeScalars map to avoid compiler crash when tree is deleted.
-
Job Noorman authored
Relocation for 64-bit absolute values.
-
XinWang10 authored
X86 don't want to unfold RMW instrs to 1 load + 1 op + 1 store, because RMW could save code size and benefit RA when reg pressure is high. And from all the call position analysis, we could find we didn't unfold RMW in current code.
-
Fabio D'Urso authored
This fixes the issue that resulted in getBuffer interpreting its argument as a number of elements and getDynamicBuffer interpreting it as a number of bytes.
-
Luís Marques authored
-
Momchil Velikov authored
This reverts commit ace20e24. This might be causing a buildbot failure at https://green.lab.llvm.org/green/job/clang-stage1-RA/35786/
-
Freddy Ye authored
-
Daniel Thornburgh authored
This fixes a size regression in Fuchsia when building a static libc++ multilib with exceptions disabled. Referring to `system_category` in `__throw_system_error` brings in a relatively large amount of additional exception classes into the link without substantially improving the error message.
-
Matthias Springer authored
The buffer deallocation pipeline now works on modules and functions. Also add extra test cases that run the buffer deallocation pipeline on modules and functions. (Test cases that insert a helper function.)
-
Louis Dionne authored
While doing this, I also found a few tests that were either clearly incorrect (e.g. testing the wrong function) or that lacked basic test coverage like testing std::string itself (e.g. the test was only checking std::basic_string with a custom allocator). In these cases, I did a few conservative drive-by changes. Differential Revision: https://reviews.llvm.org/D140550 Co-authored-by:
Brendan Emery <brendan.emery@esrlabs.com>
-
Nikita Popov authored
llvm.ptrmask is currently limited to pointers only, and does not accept vectors of pointers. This is an unnecessary limitation, especially as the underlying instructions (getelementptr etc) do support vectors of pointers. We should relax this sooner rather than later, to avoid introducing code that assumes non-vectors (#67166).
-
Arthur Eubanks authored
We're running into stack overflows for huge functions with lots of phis. Even without the stack overflows, this is recursing >7000 in some auto-generated code. This fixes the stack overflow and brings down the compile time to something reasonable.
-
lcvon007 authored
User only can use opt to test LoopVersioningLICM pass, and this PR add the option back(deleted in https://reviews.llvm.org/D137915) so that it's easy for verifying if it is useful for some benchmarks.
-
Timm Baeder authored
Just using BLACK makes it invisible in terminals with a dark background.
-
Markus Böck authored
The current loop-reduce-form transformation incorrectly assumes that any value that is used in a block that isn't in the set of loop blocks is a block outside the loop. This is correct for a pure CFG but is incorrect if operations with subregions are present. In that case, a use may be in a subregion of an operation part of the loop and incorrectly deemed outside the loop. This would later lead to transformations with code that does not verify. This PR fixes that issue by checking the transitive parent block that is in the same region as the loop rather than the immediate parent block.
-
Kiran Chandramohan authored
These are versions of tests from flang/test/Lower/OpenMP/FIR.
-
Ramkumar Ramachandra authored
Under RISCV experimental-zvbb, vector variants of llvm.ctpop lower to a single instruction: vcpop. The cost-model does not check for the ZVBB extension, and always associates a high cost to vector variants of llvm.ctpop. Fix this defect.
-
Alexey Lapshin authored
This patch is extracted from D96035, it adds support for the accelerator tables to the DWARFLinkerParallel functionality. Differential Revision: https://reviews.llvm.org/D154793
-
Simon Pilgrim authored
To invert the result, we can profitably commute a PCMPGT node if the LHS was a constant (C > min_signed_value): https://alive2.llvm.org/ce/z/LxcPqm Allows the constant to fold, and helps reduce register pressure Fixes #67347
-
Benjamin Maxwell authored
This updates the table of op attributes so that clicking the summary expands to show the complete description. ``` Attribute | MLIR Type | Description <name> <type>
▶ <summary> <-- Click to expand ``` Enum attributes have now also been updated to generate a description that lists all the cases (with both their MLIR and C++ names). This makes viewing enums on the MLIR docs much nicer. **Example** Default view:  Expanded:  --- This requires: https://github.com/llvm/mlir-www/pull/158 (adds a very simple markdown shortcode)
-