- Jul 03, 2021
-
-
Simon Pilgrim authored
-
Nikita Popov authored
Specifically the CreateMaskedStore and CreateMaskedScatter APIs. The CreateMaskedLoad and CreateMaskedGather APIs will need an additional type argument.
-
Andrzej Warzynski authored
The bash wrapper script, `flang`, calls `flang-new -fc1` under the hood, which does not support `--version` (this is consistent with `clang -cc1 --version`). This change is needed for `flang --version` to work as expected. Note that `flang --version` (the Flang bash wrapper script for the compiler driver) gives rather minimal output compared to `flang-new --version` (the Flang compiler driver). As the wrapper script is just a temporary solution for us, this should be sufficient. Differential Revision: https://reviews.llvm.org/D105352
-
Roman Lebedev authored
[SimplifyCFG] simplifyUnreachable(): erase instructions iff they are guaranteed to transfer execution to unreachable This replaces the current ad-hoc implementation, by syncing the code from InstCombine's implementation in `InstCombinerImpl::visitUnreachableInst()`, with one exception that here in SimplifyCFG we are allowed to remove EH instructions. Effectively, this now allows SimplifyCFG to remove calls (iff they won't throw and will return), arithmetic/logic operations, etc. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D105374
-
David Green authored
This adds simple patterns for signed and unsigned saturating extract narrow instructions. They combine a min/max/truncate into a single instruction, providing that the immediates on the min/max are correct for the saturation type. This is just handled in tablegen with some extra patterns. v2i64->v2i32 is not handled here as the min/max nodes are not legal, making the lowering quite different. Differential Revision: https://reviews.llvm.org/D103263
-
Kai Luo authored
Allocate non-volatile registers in order to be compatible with ABI, regarding gpr_save. Quoted from https://www.ibm.com/docs/en/ssw_aix_72/assembler/assembler_pdf.pdf page55, > The preferred method of using GPRs is to use the volatile registers first. Next, use the nonvolatile registers > in descending order, starting with GPR31. This patch is based on @jsji 's initial draft. Tested on test-suite and SPEC, found no degradation. Reviewed By: jsji, ZarkoCA, xingxue Differential Revision: https://reviews.llvm.org/D100167
-
Craig Topper authored
Use getMemoryVT() in MGATHER/MSCATTER DAG combines instead of using the passthru or store value VT for this argument.
-
Fangrui Song authored
D74751 added `ClearDSOLocalOnDeclarations` and dropped dso_local for isDeclarationForLinker `GlobalValue`s. It missed a case for imported declarations (`doImportAsDefinition` is false while `isPerformingImport` is true). This can lead to a linker error for a default visibility symbol in `ld.lld -shared`. When `ClearDSOLocalOnDeclarations` is true, we check `isPerformingImport() && !doImportAsDefinition(&GV)` along with `GV.isDeclarationForLinker()`. The new condition checks an imported declaration. This patch fixes a `LLVMPolly.so` link error using a trunk clang -DLLVM_ENABLE_LTO=Thin. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D104986
-
Jonas Devlieghere authored
This reverts commit c8164d02 and 43f6dad2 because it breaks TestDyldTrieSymbols.py on GreenDragon.
-
Jonas Devlieghere authored
This reverts commit 8cd35ad8. It breaks `TestMembersAndLocalsWithSameName.py` on GreenDragon and Mikael Holmén points out in D104827 that bitcode files created with the patch cannot be parsed with binaries built before it.
-
Aart Bik authored
This revision extends the sparse compiler support from fp/int addition and multiplication to fp/int negation and subtraction, thereby increasing the scope of sparse kernels that can be compiled. Reviewed By: gussmith23 Differential Revision: https://reviews.llvm.org/D105306
-
Saleem Abdulrasool authored
Allow a preprocessor observer to be notified of mark pragmas. Although this does not impact code generation in any way, it is useful for other clients, such as clangd, to be able to identify any marked regions. Reviewed By: dgoldman Differential Revision: https://reviews.llvm.org/D105368
-
Jonas Devlieghere authored
-
David Blaikie authored
-
Nicolas Vasilache authored
The implementation has become too unwieldy and cognitive overhead wins. Instead compress the implementation in preparation for additional lowering paths. This is a resubmit of https://reviews.llvm.org/D105359 without ordering ambiguities. Differential Revision: https://reviews.llvm.org/D105367
-
Mitch Phillips authored
gtest highly recommends this prefix, and runs death tests first (https://github.com/google/googletest/blob/master/docs/advanced.md#death-test-naming). This may help with some spurious bot failures like https://lab.llvm.org/buildbot/#/builders/169/builds/1290/steps/25/logs/stdio. Reviewed By: cryptoad, vitalybuka Differential Revision: https://reviews.llvm.org/D105371
-
Roman Lebedev authored
It is being affected by an upcoming SimplifyCFG change.
-
Roman Lebedev authored
These rely on the fact that currently simplifycfg won't really propagate said `unreachable`, but that is about to change.
-
Med Ismail Bennani authored
This patch fixes a failure in `TestFunctionStarts.py` that appeared following a change of implementation for synthetic symbol names: https://reviews.llvm.org/D105160 The failure is caused because the previously mentioned patch removes the object file basename from the generated synthetic symbol names to allow them to be shared in the constant string pool. Hence, that last check is not necessary anymore. rdar://80092322 Differential Revision: https://reviews.llvm.org/D105366 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Amara Emerson authored
For some reason we/I started writing these as returning bool when the return value is actually ignored by the combiner.
-
Joachim Meyer authored
This broke ARM builds e.g.: https://lab.llvm.org/buildbot/#/builders/187/builds/212
-
Roman Lebedev authored
-
Michał Górny authored
Extend the SetCurrentThread() method to support specifying an alternate PID to switch to. This makes it possible to issue requests to forked processes. Differential Revision: https://reviews.llvm.org/D100262
-
Amara Emerson authored
We're trying to match a few pointer computation patterns here for re-association opportunities. 1) Isolating a constant operand to be on the RHS, e.g.: G_PTR_ADD(BASE, G_ADD(X, C)) -> G_PTR_ADD(G_PTR_ADD(BASE, X), C) 2) Folding two constants in each sub-tree as long as such folding doesn't break a legal addressing mode. G_PTR_ADD(G_PTR_ADD(BASE, C1), C2) -> G_PTR_ADD(BASE, C1+C2) AArch64 code size improvements on CTMark with -Os: Program before after diff pairlocalalign 251048 251044 -0.0% consumer-typeset 421820 421812 -0.0% kc 431348 431320 -0.0% SPASS 413404 413300 -0.0% clamscan 384396 384220 -0.0% tramp3d-v4 370640 370412 -0.1% lencod 432096 431772 -0.1% bullet 479400 478796 -0.1% sqlite3 288504 288072 -0.1% 7zip-benchmark 573796 570768 -0.5% Geomean difference -0.1% Differential Revision: https://reviews.llvm.org/D105069
-
Roman Lebedev authored
[NFCI][SimplifyCFG] simplifyUnreachable(): Use poison constant to represent the result of unreachable instrs Mimics similar change for InstCombine: ce192ced / D104602 All these uses are in blocks that aren't reachable from function's entry, and said blocks are removed by SimplifyCFG itself, so we can't really test this change.
-
Heejin Ahn authored
This tries to bail out if the PHI is in a `catchswitch` BB in InstCombine. A PHI cannot be combined into a non-PHI instruction if it is in a `catchswitch` BB, because `catchswitch` BB cannot have any non-PHI instruction other than `catchswitch` itself. The given test case started crashing after D98058. Reviewed By: lebedev.ri, rnk Differential Revision: https://reviews.llvm.org/D105309
-
Adam Paszke authored
For now only expose a builder for the LLVM pointer type. Reviewed By: jpienaar, ftynse Differential Revision: https://reviews.llvm.org/D105346
-
Roman Lebedev authored
Somewhat related to D105338. While it is up for discussion whether or not volatile store traps, so far there has been no complaints that volatile load/cmpxchg/atomicrmw also may trap. And even if simplifycfg currently concervatively believes that to be the case, instcombine does not: https://godbolt.org/z/5vhv4K5b8 Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D105343
-
Jonas Devlieghere authored
Replace default bodies of special member functions with = default; $ run-clang-tidy.py -header-filter='lldb' -checks='-*,modernize-use-equals-default' -fix , https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html Differential revision: https://reviews.llvm.org/D104041
-
Eric Astor authored
In MASM, the ifdef family of directives treats its argument literally, without expanding it as a text macro. Add support for this, and also replace the special handling that was previously used for echo. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D104196
-
MaheshRavishankar authored
Fusion by linearization should not happen when - The reshape is expanding and it is a consumer - The reshape is collapsing and is a producer. The bug introduced in this logic by some recent refactoring resulted in a crash. To enforce this (negetive) use case, add a test that reproduces the error and verifies the fix. Differential Revision: https://reviews.llvm.org/D104970
-
Krzysztof Parzyszek authored
Differential Revision: https://reviews.llvm.org/D105353
-
Krzysztof Parzyszek authored
-
Sam Clegg authored
This means `max_align_t` is 8 bytes which also sets the alignment malloc. Since this is technically and ABI breaking change we have limited to just the emscripten OS target. It is also relatively low import breakage since it will only effect the alignement of struct that contai `long double`s (extremerly rare I imagine). Emscripten's malloc implementation already use 8 byte alignement (dlmalloc uses and alignement of 2*sizeof(void*) == 8 rather than checking max_align_t) so will not be effected by this change. By bringing the ABI in line with the current malloc code this will fix several issue we have seen in the wild. See: https://github.com/emscripten-core/emscripten/pull/14456 Differential Revision: https://reviews.llvm.org/D104808
-
Mitch Phillips authored
This reverts commit e386871e. Reason: Broke the ASan buildbots (https://lab.llvm.org/buildbot/#/builders/5/builds/9291). See comments on https://reviews.llvm.org/D104898 for more information.
-
Mehdi Amini authored
This reverts commit db188adf. Breaks the GCC tests, likely because of some order of evaluation difference between clang and gcc.
-
Vy Nguyen authored
Details: see https://bugs.llvm.org/show_bug.cgi?id=50812 Differential Revision: https://reviews.llvm.org/D105210
-
Amir Ayupov authored
Add missing control flow attributes: - LOOP*: isBranch, isTerminator - HLT: isTerminator This helps downstream disassemblers (such as BOLT) reconstruct the control flow graph more accurately. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D102297
-
Alexey Bataev authored
V.Dmitriev. Reduces number of arguments
-
Jacob Hegna authored
-