- May 22, 2021
-
-
Florian Hahn authored
If there are no matrix intrinsics in a function, we can directly bail out, as there's nothing left to do. Reviewed By: anemet Differential Revision: https://reviews.llvm.org/D102931
-
Simon Pilgrim authored
These can be cheaply promoted to a single v8i16 vector for multiplication
-
Simon Pilgrim authored
BTVER2 has a 2 cycle throughput for v4i32 multiplies (same as SSE41 targets), which is only partially hidden by the subvector extracts/insert when splitting v8i32.
-
Butygin authored
It is useful for someone who wants to implement custom AllocOp LLVM lowering Differential Revision: https://reviews.llvm.org/D102932
-
Tomasz Miąsko authored
Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D102581
-
Tomasz Miąsko authored
Reviewed By: dblaikie Part of https://reviews.llvm.org/D102580
-
Tomasz Miąsko authored
Reviewed By: dblaikie Part of https://reviews.llvm.org/D102580
-
Nikita Popov authored
-
Roman Lebedev authored
Now that getMemoryOpCost() correctly handles all the vector variants, we should no longer hand-roll our own version of it, but use it directly. The AVX512 variant probably needs a similar change, but there it is less obvious. This was initially landed in 69ed93a4, but was reverted in 6b95fd19 because the patch it depends on was reverted.
-
Roman Lebedev authored
Instead of handling power-of-two sized vector chunks, try handling the large vector in a stream mode, decreasing the operational vector size once it no longer works for the elements left to process. Notably, this improves costs for overaligned loads - loading padding is fine. This more directly tracks when we need to insert/extract the YMM/XMM subvector, some costs fluctuate because of that. This was initially landed in c02476f3, but reverted in 5fddc331, because the code made some very optimistic assumptions about invariants that didn't hold in practice. Reviewed By: RKSimon, ABataev Differential Revision: https://reviews.llvm.org/D100684
-
LemonBoy authored
D29668 enabled to avoid a useless copy of the argument value into an alloca if the caller places it in memory (as it often happens on x86) by directly forwarding the pointer to it. This optimization is illegal if the type contains padding bytes: if a truncating store into the alloca is replaced the upper bits are filled with garbage and produce code misbehaving at runtime. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D102153
-
Serge Pavlov authored
Replace use of host floating types with operations on APFloat when it is possible. Use of APFloat makes analysis more convenient and facilitates constant folding in the case of non-default FP environment. Differential Revision: https://reviews.llvm.org/D102672
-
Michael Kruse authored
Avoid the warning /polly/lib/Support/RegisterPasses.cpp:833:3: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default] default: ^ since all cases are now handled. Thanks to Luke Benes for reporting. -
Lang Hames authored
-
Lang Hames authored
-
Lang Hames authored
This test has been failing intermittently on some builders, probably due to a race on the WorkThreads vector. This patch should fix that.
-
Fangrui Song authored
-
Fangrui Song authored
True is a bad default: the useful symbol names and `@GOTPCREL` are scrubbed. Change the default and add global variable tests to x86-basic.ll (renamed from x86_function_name.ll since we now also test variables). I updated some tests to show the differences. Updated LCPI regex to include Darwin style `LCPI_[0-9]+_[0-9]+` (no leading dot). Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D102588
-
peter klausler authored
Dummy arguments of ENTRY statements in execution parts were not being created as objects, nor were they being implicitly typed. When the symbol corresponding to an alternate ENTRY point already exists (by that name) due to having been referenced in an earlier call, name resolution used to delete the extant symbol. This isn't the right thing to do -- the extant symbol will be pointed to by parser::Name nodes in the parse tree while no longer being part of any Scope. Differential Review: https://reviews.llvm.org/D102948
-
Lang Hames authored
The implementation and intent behind freeing the triple string here is the same as LLVMGetDefaultTargetTriple (and any other owned c string returned from the C API), so we should use LLVMDisposeMessage for to free the string for consistency. Patch by Mats Larsen -- thanks Mats! Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D102957
-
Arthur Eubanks authored
This reverts commit d14d84af. Causes unacceptable memory regressions.
-
Arthur Eubanks authored
This reverts commit 97ab0680. Depends on D100917, which is to be reverted.
-
Eli Friedman authored
The textual IR writer has an equivalent marking. It looks like this got missed in e6ea8779.
-
Vitaly Buka authored
-
Vitaly Buka authored
Similar to regular output of LIT tests: https://github.com/llvm/llvm-project/blob/c162f086ba632ffaedfe92d63bf21571bc8ae4da/llvm/utils/lit/lit/TestRunner.py#L1569 Differential Revision: https://reviews.llvm.org/D102899
-
Nick Desaulniers authored
D88631 added initial support for: - -mstack-protector-guard= - -mstack-protector-guard-reg= - -mstack-protector-guard-offset= flags, and D100919 extended these to AArch64. Unfortunately, these flags aren't retained for LTO. Make them module attributes rather than TargetOptions. Link: https://github.com/ClangBuiltLinux/linux/issues/1378 Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D102742
-
Andrew Young authored
These pass documents belong on the main pass page, and not generated as top level pages. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D102947
-
Sam Clegg authored
Prior to this change build with `-shared/-pie` and using TLS (but without -shared-memory) would hit this assert: "Currenly only a single data segment is supported in PIC mode" This is because we were not including TLS data when merging data segments. However, when we build without shared-memory (i.e. without threads) we effectively lower away TLS into a normal active data segment.. so we were ending up with two active data segments: the merged data, and the lowered TLS data. To fix this problem we can instead avoid combining data segments at all when running in shared memory mode (because in this case all segment initialization is passive). And then in non-shared memory mode we know that TLS has been lowered and therefore we can can and should combine all segments. So with this new behavior we have two different modes: 1. With shared memory / mutli-threaded: Never combine data segments since it is not necessary. (All data segments as passive already). 2. Wihout shared memory / single-threaded: Combine *all* data segments since we treat TLS as normal data. (We end up with a single active data segment). Differential Revision: https://reviews.llvm.org/D102937
-
Jon Roelofs authored
-
Yaxun (Sam) Liu authored
-
-
Martin Storsjö authored
If multiple instances of the -arm-implicit-it option is passed to the backend, it errors out. Also fix cases where there are multiple -Wa,-mimplicit-it; the existing tests indicate that the last one specified takes effect, while in practice it passed double options, which didn't work as intended. Differential Revision: https://reviews.llvm.org/D102812
-
Saleem Abdulrasool authored
This adds the {s,u,m}badaddr CSR aliases as well as the sptbr alias. These are for compatibility with binutils. Furthermore, these are used by the RISC-V Proxy Kernel and are required to enable building the Proxy Kernel with the LLVM IAS. The aliases here are deprecated. These are being introduced in order to provide a compatibility story for the existing GNU toolchain, which still supports the deprecated spelling in the assembler. However, in order to encourage the migration of existing coding, we provide warnings indicating that the aliased CSRs are deprecated and should be replaced. Differential Revision: https://reviews.llvm.org/D101919 Reviewed By: Craig Topper -
AndreyChurbanov authored
Warnings on deprecated api cannot be suppressed if the library is not initialized. With this change it is possible to set KMP_WARNINGS=false to suppress the warnings. Differential Revision: https://reviews.llvm.org/D102676
-
Axel Y. Rivera authored
[LLD][COFF] PR49068: Include the IMAGE_REL_BASED_HIGHLOW relocation base type when the machine is 64 bits and the relocation type is ADDR32 The COFF driver produces an ABSOLUTE relocation base for an ADDR32 relocation type and the system is 64 bits (machine=AMD64). The relocation information won't be added in the output and could produce an incorrect address access during run-time. This change set checks if the relocation type is IMAGE_REL_AMD64_ADDR32 and if so, adds the relocated symbol as IMAGE_REL_BASED_HIGHLOW base. Differential Revision: https://reviews.llvm.org/D96619
-
Arthur Eubanks authored
These checks already exist as asserts when creating the corresponding instruction. Anybody creating these instructions already need to take care to not break these checks. Move the checks for success/failure ordering in cmpxchg from the verifier to the LLParser and BitcodeReader plus an assert. Add some tests for cmpxchg ordering. The .bc files are created from the .ll files with an llvm-as with these checks disabled. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D102803
-
zoecarver authored
This commit alphabetizes all includes in libcxx. This is a NFC. This can also serve as a pseudo "announcement" for how we should order these headers going forward (note: double underscores go before other headers). Differential Revision: https://reviews.llvm.org/D102941
-
David Goldblatt authored
These are baseline tests for D102864
-
Aart Bik authored
This revision completes the "dimension ordering" feature of sparse tensor types that enables the programmer to define a preferred order on dimension access (other than the default left-to-right order). This enables e.g. selection of column-major over row-major storage for sparse matrices, but generalized to any rank, as in: dimOrdering = affine_map<(i,j,k,l,m,n,o,p) -> (p,o,j,k,i,l,m,n)> Reviewed By: bixia Differential Revision: https://reviews.llvm.org/D102856
-
Vitaly Buka authored
D102899 will change it behavour.
-