- Jul 03, 2021
-
-
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
-
Jon Roelofs authored
This opens up more optimization opportunities in passes that already handle MemCpyInst's. Differential revision: https://reviews.llvm.org/D105247
-
wmbat authored
C++17 deprecated `std::is_literal_type` and `std::result_of`, C++20 removed them. Implements parts of: * P0174R2 'Deprecating Vestigial Library Parts in C++17'. * P0619R4 'Reviewing Deprecated Facilities of C++17 for C++20'. Reviewed By: ldionne, Mordante, Quuxplusone, #libc Differential Revision: https://reviews.llvm.org/D102992 -
LLVM GN Syncbot authored
-
Joachim Meyer authored
This adds a very basic test in `cuda_with_openmp.cu` that just checks whether the CUDA & OpenMP integrated headers do compile, when a CUDA file is compiled with OpenMP (CPU) enabled. Thus this basically adds the missing test for https://reviews.llvm.org/D90415. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D105322
-
Jacob Hegna authored
This change yields an additional 2% size reduction on an internal search binary, and an additional 0.5% size reduction on fuchsia. Differential Revision: https://reviews.llvm.org/D104751
-
Siva Chandra Reddy authored
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D105334
-
Marco Vanotti authored
This reverts commit 361f742f.
-
Nicolas Vasilache authored
The implementation has become too unwieldy and cognitive overhead wins. Instead compress the implementation in preparation for additional lowering paths. Differential Revision: https://reviews.llvm.org/D105359
-
Atmn Patel authored
D97883 introduced a compile-time error in the experimental remote offloading libomptarget plugin, this patch fixes it and resolves a number of inconsistencies in the plugin as well: 1. Non-functional Asynchronous API 2. Unnecessarily verbose debug printing 3. Misc. code clean ups This is not intended to make any functional changes to the plugin. Differential Revision: https://reviews.llvm.org/D105325
-
Tobias Gysi authored
Add the min operation to OpDSL and introduce a min pooling operation to test the implementation. The patch is a sibling of the max operation patch https://reviews.llvm.org/D105203 and the min operation is again lowered to a compare and select pair. Differential Revision: https://reviews.llvm.org/D105345
-
Geoffrey Martin-Noble authored
This adds explicit deps to satisfy layering_check Differential Revision: https://reviews.llvm.org/D105356
-
Aaron Green authored
This change introduces libMutagen/libclang_rt.mutagen.a as a subset of libFuzzer/libclang_rt.fuzzer.a. This library contains only the fuzzing strategies used by libFuzzer to produce new test inputs from provided inputs, dictionaries, and SanitizerCoverage feedback. Most of this change is simply moving sections of code to one side or the other of the library boundary. The only meaningful new code is: * The Mutagen.h interface and its implementation in Mutagen.cpp. * The following methods in MutagenDispatcher.cpp: * UseCmp * UseMemmem * SetCustomMutator * SetCustomCrossOver * LateInitialize (similar to the MutationDispatcher's original constructor) * Mutate_AddWordFromTORC (uses callbacks instead of accessing TPC directly) * StartMutationSequence * MutationSequence * DictionaryEntrySequence * RecommendDictionary * RecommendDictionaryEntry * FuzzerMutate.cpp (which now justs sets callbacks and handles printing) * MutagenUnittest.cpp (which adds tests of Mutagen.h) A note on performance: This change was tested with a 100 passes of test/fuzzer/LargeTest.cpp with 1000 runs per pass, both with and without the change. The running time distribution was qualitatively similar both with and without the change, and the average difference was within 30 microseconds (2.240 ms/run vs 2.212 ms/run, respectively). Both times were much higher than observed with the fully optimized system clang (~0.38 ms/run), most likely due to the combination of CMake "dev mode" settings (e.g. CMAKE_BUILD_TYPE="Debug", LLVM_ENABLE_LTO=OFF, etc.). The difference between the two versions built similarly seems to be "in the noise" and suggests no meaningful performance degradation. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D102447
-
LLVM GN Syncbot authored
-
Jinsong Ji authored
Add a flag so that target can choose to use AsmParser for parsing inline asm. And set the flag by default for AIX. -no-intergrated-as will override this default if specified explicitly. Reviewed By: #powerpc, shchenz Differential Revision: https://reviews.llvm.org/D105314
-