- Oct 11, 2021
-
-
Lang Hames authored
These calls were left out of 4d7cea3d. In the InPlaceDispatcher test case the operation is a no-op, but it's good form to include it. In the DynamicThreadPoolTaskDispatcher test the shutdown call is required to ensure that we don't exit the test (and tear down the dispatcher) before the thread running the dispatch has completed.
-
Lang Hames authored
The callWrapperAsync and callSPSWrapperAsync methods take a handler object that is run on the return value of the call when it is ready. The new RunPolicy parameters allow clients to control how these handlers are run. If no policy is specified then the handler will be packaged as a GenericNamedTask and dispatched using the ExecutorProcessControl's TaskDispatch member. Callers can use the ExecutorProcessControl::RunInPlace policy to cause the handler to be run directly instead, which may be preferrable for simple handlers, or they can write their own policy object (e.g. to dispatch as some other kind of Task, rather than GenericNamedTask).
-
Lang Hames authored
-
Esme-Yi authored
Summary: This patch improves the error message context of the XCOFF interfaces by providing more details. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D110320
-
Qiu Chaofan authored
The SSE4 header (smmintrin.h) should include SSSE3 (tmmintrin.h) instead of SSE2 (emmintrin.h). Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D111482
-
Lang Hames authored
f3411616 introduced a dependence (for builds with LLVM_ENABLE_THREADS) on pthreads. This commit updates the CMakeLists.txt file to include a LINK_LIBS entry for pthreads.
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
Lang Hames authored
These were accidentally left out of f3411616.
-
Arthur O'Dwyer authored
Differential Revision: https://reviews.llvm.org/D110735
-
Lang Hames authored
ExecutorProcessControl objects will now have a TaskDispatcher member which should be used to dispatch work (in particular, handling incoming packets in the implementation of remote EPC implementations like SimpleRemoteEPC). The GenericNamedTask template can be used to wrap function objects that are callable as 'void()' (along with an optional name to describe the task). The makeGenericNamedTask functions can be used to create GenericNamedTask instances without having to name the function object type. In a future patch ExecutionSession will be updated to use the ExecutorProcessControl's dispatcher, instead of its DispatchTaskFunction.
-
Arthur Eubanks authored
Use Module& wherever possible. Since every reduction immediately turns Chunks into an Oracle, directly pass Oracle instead. Reviewed By: hans Differential Revision: https://reviews.llvm.org/D111122
-
Amara Emerson authored
-
Wenlei He authored
Allow overlap/similarity comparison to use custom hot threshold cutoff, instead of using hard coded 990000 as hot cutoff. Differential Revision: https://reviews.llvm.org/D111385
-
Wenlei He authored
When parsing mmap to retrieve PID, deduplicate them before passing PID list to perf script. Perf script would error out when there's duplicated PID in the input, however raw perf data may main duplicated PID for large binary where more than one mmap is needed to load executable segment. Differential Revision: https://reviews.llvm.org/D111384
-
Sylvestre Ledru authored
-
Lang Hames authored
The callee address is now the first parameter and the 'SendResult' function the second. This change improves consistentency with the non-async functions where the callee is the first address and the return value the second.
-
Lang Hames authored
This reverts commit dd384d28. dfd74db9 was reverted in 8fe3d9df, so this is no longer needed.
-
Dawid Jurczak authored
Transformation from malloc+memset to calloc is always correct and in many situations it brings significant observable benefits in terms of execution speed and memory consumption [1][2]. Unfortunately there are cases when producing calloc cause performance drops [3]. As discussed here: https://reviews.llvm.org/D103009 it's possible to differentiate between those 2 scenarios. If optimizer is able to prove that after malloc call it's _very_ likely to reach memset branch then after calloc emission we shouldn't observe any performance hits. Therefore finding "null pointer check" pattern before memset basic block sounds like good justification for performing transformation. Also that method was already suggested by GCC folks [4]. Main reason for change is that for now to be safe we check for post dominance relation which is way too conservative approach making transformation "almost" disabled in practice. This patch tends to enable transformation again but with extra care. [1] https://stackoverflow.com/questions/2688466/why-mallocmemset-is-slower-than-calloc [2] https://vorpus.org/blog/why-does-calloc-exist/ [3] http://smalldatum.blogspot.com/2017/11/a-new-optimization-in-gcc-5x-and-mysql.html [4] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83022 Differential Revision: https://reviews.llvm.org/D110021
-
Sylvestre Ledru authored
Reviewed By: xbolva00 Differential Revision: https://reviews.llvm.org/D111215
-
Nico Weber authored
..and use it. No behavior change.
-
Nico Weber authored
And rewrap a line at 80 columns while here. No behavior change.
-
Joe Loser authored
Replace `TEST_NOEXCEPT_FALSE` directly with `noexcept(false)` in optional hash test which is only run in C++17 or later. `TEST_NOEXCEPT_FALSE` is only useful in C++03 context where `noexcept` isn't supported by clang. `TEST_NOEXCEPT_FALSE` now only has one remaining use in `hash_unique_ptr.pass.cpp`.
-
Joe Loser authored
There is an empty `namespace std` in `type_traits` which was originally used when `std::byte` was added in c97d8aa8. At some point, the bitwise operators on `std::byte` got relocated but this empty namespace was left around. Remove it. Reviewed By: Quuxplusone, Mordante, #libc Differential Revision: https://reviews.llvm.org/D111512
-
Jean Perier authored
Upstream the character conversion pass. Translates entities of one CHARACTER KIND to another. By default the translation is to naively zero-extend or truncate a code point to fit the destination size. This patch is part of the upstreaming effort from fir-dev branch. Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
Valentin Clement <clementval@gmail.com> Reviewed By: schweitz Differential Revision: https://reviews.llvm.org/D111405
-
Joe Loser authored
There is a stray tab character in a comment block. Replace the tab character with a space for consistency with other comments.
-
- Oct 10, 2021
-
-
Kazu Hirata authored
-
Sanjay Patel authored
This consolidates related folds that all have a similar use restriction that may not be necessary.
-
Sanjay Patel authored
-
Sanjay Patel authored
The test diffs show that we have better analysis/folds for 'add' (although we should at least have the simplifications independently, so we don't have the one-use restriction). This is related to solving regressions that would appear in transforms related to D111410, and that is part of a series of enhancements that may eventually helpi solve PR34047. https://alive2.llvm.org/ce/z/3tB9KG define i1 @src(i8 %x, i8 %C, i8 %C2) { %sub = sub nuw i8 %C2, %x %r = icmp slt i8 %sub, %C ret i1 %r } define i1 @tgt(i8 %x, i8 %C, i8 %C2) { %Cnot = xor i8 %C, -1 %C2not = xor i8 %C2, -1 %add = add nuw i8 %x, %C2not %r = icmp sgt i8 %add, %Cnot ret i1 %r }
-
Sanjay Patel authored
-
Chen Zheng authored
-
Mark de Wever authored
-
Dávid Bolvanský authored
-
william woodruff authored
This adds the `--dump-blockinfo` flag to `llvm-bcanalyzer`, allowing a sufficiently motivated user to dump (parts of) the `BLOCKINFO_BLOCK` block. The default behavior is unchanged, and `--dump-blockinfo` only takes effect in the same context as other flags that control dump behavior (i.e., requires that `--dump` is also passed). Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D107536
-
Amara Emerson authored
If the wide store we'd generate is not a multiple of the memory type of the narrow stores (e.g. s48 and s32), we'd assert. Fix that.
-
william woodruff authored
Without this, the combination of `-ast-dump=json` and `-ast-dump-filter FILTER` produces invalid JSON: the first line is a string that says `Dumping $SOME_DECL_NAME: `. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D108441
-
Med Ismail Bennani authored
This is disabling 'TestScriptedProcess.py' on macOS since it fails on Green Dragon: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/35974 Signed-off-by:
Med Ismail Bennani <medismail.bennani@gmail.com>
-
Joe Loser authored
`{ind.move.subsumption.compile.pass.cpp}` was accidentally commited in https://reviews.llvm.org/D102639. Per the conversation on Discord in -
Amy Zhuang authored
1. Add support to vectorize induction variables of loops that are not mapped to any vector dimension in SuperVectorize pass. 2. Fix a bug in getForInductionVarOwner. Reviewed By: dcaballe Differential Revision: https://reviews.llvm.org/D111370
-