- Oct 13, 2021
-
-
Lang Hames authored
2815ed57 added calls from ExecutorProcessControl::disconnect implementations to shut down the TaskDispatcher. We still need to call endSession to trigger disconnection though. This commit adds the necessary calls to the failing unit tests. https://llvm.org/PR52153
-
Arthur Eubanks authored
Do this by refactoring the optimization and codegen pipelines into separate functions. This saves a tiny bit of memory in non-LTO builds [1]. [1] https://llvm-compile-time-tracker.com/compare.php?from=fbddf22ef72d3c2e9b14e1501841b03380eef12b&to=cd276df52eb6f2b84a8e1efe5318460c6debf82d&stat=max-rss Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D111582
-
Vitaly Buka authored
Depends on D111608. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D111609
-
Vitaly Buka authored
It's likely missdiagnosed issue fixed with 336e8863
-
Diego Caballero authored
This patch adds support for vectorizing 'mul', 'and', 'or' anx 'xor' reductions to Linalg. Reviewed By: pifon2a, ThomasRaoux, aartbik Differential Revision: https://reviews.llvm.org/D111565
-
Diego Caballero authored
This patch teaches `isProjectedPermutation` and `inverseAndBroadcastProjectedPermutation` utilities to deal with maps representing an explicit broadcast, e.g., (d0, d1) -> (d0, 0). This extension is needed to enable vectorization of such explicit broadcast in Linalg. Reviewed By: pifon2a, nicolasvasilache Differential Revision: https://reviews.llvm.org/D111563
-
Nico Weber authored
-
Jean Perier authored
This patch upstream the cfg conversion pass. This pass rewrite FIR loop-like operation to a CFG. This patch is part of the upstreaming effort from fir-dev branch. Co-authored-by:
Eric Schweitz <eschweitz@nvidia.com> Co-authored-by:
V Donaldson <vdonaldson@nvidia.com> Co-authored-by:
Valentin Clement <clementval@gmail.com> Reviewed By: schweitz Differential Revision: https://reviews.llvm.org/D111095
-
Vitaly Buka authored
-
Vitaly Buka authored
Depends on D111607. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D111608
-
Philip Reames authored
If we have an instruction which produces poison only when flags are specified on the instruction, then we know that freezing the operands and dropping flags is equivalent to freezing the result. If we know those flags don't result in any undefined behavior being executed, then there's no point in preserving the flags as we gain no knowledge by having them. This patch extends the existing propagation logic which sinks freeze to single potential non-poison operands to allow dropping of flags when we know the freeze is the sole use of the instruction with poison flags. The main value is that we tend to sink freezes towards the phi in IV cycles where the incoming value to the phi is the freeze of an IV increment. This will in turn (in a future patch), let us fold the freeze through the phi into the loop preheader. Motivated by eliminating need for CanonicalizeFreezeInLoops for the clearly profitable cases from onephi.ll test case in the test directory. Differential Revision: https://reviews.llvm.org/D111675
-
Vitaly Buka authored
Mapped size is more appropriate for most users. Depends on D111605. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D111607
-
Albion Fung authored
On AIX, the system assembler does not support the extended mnemonics dcbtt and dcbtstt. This patch stops them from being emitted on AIX and emits the base mnemonics instead, dcbt X, X, 16 and dcbtstt X, X, 16 respectively. Differential revision: https://reviews.llvm.org/D111258
-
Lang Hames authored
f3411616 added a task dispatcher for async handlers, but didn't add a TaskDispatcher::shutdown call to SelfExecutorProcessControl or SimpleRemoteEPC. This patch adds the missing call, which ensures that we don't destroy the dispatcher while tasks are still running. This should fix the use-after-free crash seen in https://lab.llvm.org/buildbot/#/builders/5/builds/13063
-
Vitaly Buka authored
Depends on D111599. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D111605
-
Philip Reames authored
-
Vitaly Buka authored
UL suffix on MSVC is 32bit.
-
Vitaly Buka authored
-
Roland Froese authored
Simplify the test case to make it easier to look at. Change from auto-generated checks to targeted manual checks to reduce sensitivity to register allocation and scheduling changes. Differential Revision: https://reviews.llvm.org/D111333
-
Rob Suderman authored
Average pool assumed the same input/output type. Result type for integers is always an i32, should be updated appropriately. Reviewed By: GMNGeoffrey Differential Revision: https://reviews.llvm.org/D111590
-
David Blaikie authored
Noticed in code review https://github.com/llvm/llvm-project/commit/4318028cd2d7633a0cdeb0b5d4d2ed81fab87864#commitcomment-57738034 But the issue had already been fixed in 943b3048 due to a code checking tool (PVS studio) identification, but that lacked test coverage. Refactor this test a little bit too by using more CHECK-SAME to help the checks fail sooner (rather than, if the addrx or sizes are wrong, having that check bind to a much later output line - and then fail due to the implicit-check-nots, which don't provide a lot of information about where the intended check was likely to land) & more informatively.
-
David Blaikie authored
Also modify the test to be more robust (current IR generation doesn't include call sites for callees that are only declared but not defined - so the test case couldn't be regenerated - add a function definition (& optnone attribute) so it doesn't depend on call sites for declared-but-not-defined functions)
-
peter klausler authored
Add #include <cstddef> to time-intrinsic.h so std::size_t is guaranteed to be available.
-
Jacques Pienaar authored
Expose the nameloc getter to Python API. Differential Revision: https://reviews.llvm.org/D111663
-
Philip Reames authored
-
Ayal Zaks authored
This patch fixes another crash revealed by PR51614: when *deciding* to vectorize with masked interleave groups, check if the access is reverse (which is currently not supported). Differential Revision: https://reviews.llvm.org/D108900
-
Amara Emerson authored
Differential Revision: https://reviews.llvm.org/D111524
-
Arthur Eubanks authored
According to [1] we only support gcc 5.1+. So these checks for older gcc versions are not supported. Some gcc 5.1+ versions still don't support __has_builtin, so just check __GNUC__ in those cases. Add a missing #endif for LLVM_ATTRIBUTE_UNREACHABLE. [1] https://llvm.org/docs/GettingStarted.html#host-c-toolchain-both-compiler-and-standard-library Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D111581
-
Michael Jones authored
This adds strncat to llvm libc. In addition, an error was found with strcat and that was fixed. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D111583
-
Tobias Gysi authored
Adapt CodegenStartegy to used the vector transfer lowering patterns by default. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D111649
-
Vitaly Buka authored
unlock corrupted backets by using s set by loop to nullptr. Also StackDepot supports iterating without locking. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D111599
-
William Woodruff authored
This patch fixes a couple of small oversights in the documentation for the datalayout specification: * The v and f specifications are subject to the same constraints on <size> as i is. * The p[n] specification didn't mark <idx> as optional, despite being documented and parsed as such. * Similarly, none of the alignment specifications require <pref>.
-
Kevin P. Neal authored
Precommit tests for D107285 as requested. TODO notes left at individual functions also as requested.
-
Mircea Trofin authored
If another inlining session came after a ModuleInlinerWrapperPass, the advisor alanysis would still be cached, but its Result would be cleared. We need to clear both. This addresses PR52118 Differential Revision: https://reviews.llvm.org/D111586
-
Artem Dergachev authored
Clarify the message provided when the analyzer catches the use of memory that is allocated with size zero. Differential Revision: https://reviews.llvm.org/D111655
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Nico Weber authored
CFGBuilder::addStmt() implicitly passes AddStmtChoice::AlwaysAdd to Visit() already, so this should have no behavior change. Differential Revision: https://reviews.llvm.org/D111570
-
Roman Lebedev authored
-