- Aug 02, 2021
-
-
Dmitry Vyukov authored
The mutex is now unlocked by the scoped Lock object. Differential Revision: https://reviews.llvm.org/D107266
-
Guillaume Chatelet authored
[libc] Add a Google Benchmark target to support continuous monitoring of memory operation performance The next step is to be able to benchmark several implementations at once and compare which one performs best on a particular machine. Differential Revision: https://reviews.llvm.org/D107265
-
Simon Pilgrim authored
-
Dmitry Vyukov authored
Add new fixed-size vector clock for the new tsan runtime. For now it's unused. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107167
-
Dmitry Vyukov authored
Currently we save the creation stack for sync objects always. But it's not needed to some sync objects, most notably atomics. We simply don't use atomic creation stack anywhere. Allow callers to control saving of the creation stack and don't save it for atomics. Depends on D107257. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107258
-
Dmitry Vyukov authored
MetaMap::GetSync shows up in profiles, so add LIKELY/UNLIKELY annotations. Depends on D107256. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107257
-
Dmitry Vyukov authored
Don't lock the sync object inside of MetaMap methods. This has several advantages: - the new interface does not confuse thread-safety analysis so we can remove a bunch of NO_THREAD_SAFETY_ANALYSIS attributes - this allows use of scoped lock objects - this allows more flexibility, e.g. locking some other mutex between searching and locking the sync object Also prefix the methods with GetSync to be consistent with GetBlock method. Also make interface wrappers inlinable, otherwise we either end up with 2 copies of the method, or with an additional call. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107256
-
Sjoerd Meijer authored
Test ported over from test/Analysis/CostModel/ARM/shuffle.ll.
-
Carl Ritson authored
Check maximum NSA size when selecting NSA or non-NSA BVH instructions. Differential Revision: https://reviews.llvm.org/D103230
-
Petar Avramovic authored
ArtifactValueFinder keeps trying to combine g_unmerge_values in some cases. Fix is to skip combine attempt for dead defs. Differential Revision: https://reviews.llvm.org/D106879
-
Simon Pilgrim authored
As discussed on D107228, widening a subvector by inserting the whole subvector into the bottom a larger undef vector should always be cheap enough that we can treat it as zero cost. NOTE: If this proves to cause issues we have the option of introducing a "SK_WidenSubvector" shuffle kind enum that targets could override the zero cost, but that doesn't seem necessary atm. Differential Revision: https://reviews.llvm.org/D107228
-
Florian Mayer authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D105201
-
Simon Pilgrim authored
This patch adds an initial ShuffleVectorInst::isInsertSubvectorMask helper to recognize 2-op shuffles where the lowest elements of one of the sources are being inserted into the "in-place" other operand, this includes "concat_vectors" patterns as can be seen in the Arm shuffle cost changes. This also helped fix a x86 issue with irregular/length-changing SK_InsertSubvector costs - I'm hoping this will help with D107188 This doesn't currently attempt to work with 1-op shuffles that could either be a "widening" shuffle or a self-insertion. The self-insertion case is tricky, but we currently always match this with the existing SK_PermuteSingleSrc logic. The widening case will be addressed in a follow up patch that treats the cost as 0. Masks with a high number of undef elts will still struggle to match optimal subvector widths - its currently bounded by minimum-width possible insertion, whilst some cases would benefit from wider (pow2?) subvectors. Differential Revision: https://reviews.llvm.org/D107228
-
Simon Pilgrim authored
-
Rosie Sumpter authored
When the limit of the inner loop is a known integer, the InstCombine pass now causes the transformation e.g. imcp ult i32 %inc, tripcount -> icmp ult %j, tripcount-step (where %j is the inner loop induction variable and %inc is add %j, step), which is now accounted for when identifying the trip count of the loop. This is also an acceptable use of %j (provided the step is 1) so is ignored as long as the compare that it's used in is also the condition of the inner branch. Differential Revision: https://reviews.llvm.org/D105802
-
Andrzej Warzynski authored
As all member variables in `FrontendOptions` and `PreprocessorOptions` are public, we should be naming them as `variable` rather than `variable_` [1]. This patch fixes that. Also, `FrontendOptions` & `PreprocessorOptions` are re-defined as a structs rather than classes (all fields are meant to be public). [1] https://github.com/llvm/llvm-project/blob/main/flang/docs/C%2B%2Bstyle.md#naming Differential Revision: https://reviews.llvm.org/D107062
-
David Green authored
If the block target for a WLSTP instruction is known to be out of range, and cannot be fixed by the ARMBlockPlacementPass, we can relax it to a DLSTP (and cmp/branch) to still allow the creation of tail predicated loops. That is what this patch does, adding extra revert code to the fallback path of ARMBlockPlacementPass. Due to the code produced when reverting, this creates a DLSTP between a Bcc and a Br. As a DLS isn't necessarily a terminator we need to split the block to move the DLS/Br into. Differential Revision: https://reviews.llvm.org/D104709
-
Alex Zinenko authored
Otherwise, it produces wrong code for brace initializers.
-
Cullen Rhodes authored
Reviewed By: tmatheson Differential Revision: https://reviews.llvm.org/D107146
-
Andy Yankovsky authored
The encoding used for opening files depends on the OS and might be different from UTF-8 (e.g. on Windows it can be CP-1252). The documentation files use UTF-8 and might be incompatible with other encodings. For example, right now `clang-tools-extra/docs/clang-tidy/checks/abseil-no-internal-dependencies.rst` has non-ASCII quotes and running `add_new_check.py` fails on Windows, because it tries to read the file with incompatible encoding. Use `io.open` for compatibility with both Python 2 and Python 3. Reviewed By: kbobyrev Differential Revision: https://reviews.llvm.org/D106792
-
Dmitry Vyukov authored
1. Move kMaxSize declaration to private section. 2. Inline Reset, it's trivial and called semi-frequently. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107215
-
Dmitry Vyukov authored
ProcessPendingSignals is called in all interceptors and user atomic operations. Make the fast-path check (no pending signals) inlinable. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D107217
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D107018
-
David Spickett authored
This reverts commit f8bef473. Buildkite agent 3.32.0 includes a fix for the PATH issue. https://github.com/buildkite/agent/releases/tag/v3.32.0 Differential Revision: https://reviews.llvm.org/D107172
-
Butygin authored
It is inserted later under then condition. Differential Revision: https://reviews.llvm.org/D107238
-
David Green authored
Also move the test to mve-wls-block-placement.mir, to better fit what it tests.
-
Max Kazantsev authored
We might want to use info from GC strategy in middle end analysis. The motivation for this is provided in D99135: we may want to ask a GC if it's going to work with a given pointer (currently this code makes naive check by the method name). Differetial Revision: https://reviews.llvm.org/D100559 Reviewed By: reames
-
Kirill Bobyrev authored
Happens when DestContext is LinkageSpecDecl and hense CurContext happens to be both not TagDecl and NamespaceDecl. Minimal reproducer: trigger define outline in ``` namespace ns { extern "C" { typedef int foo; } foo Fo^o(int id) { return id; } } ``` Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D107047 -
Alina Sbirlea authored
-
Lang Hames authored
When compiling on ZLinux, we got this error: /llvm-project/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/ \ RemoteJITUtils.h:80:65: required from here... /usr/include/c++/7/bits/unique_ptr.h:76:22: error: invalid application of 'sizeof' to incomplete type 'llvm::orc::RemoteExecutorProcessControl' static_assert(sizeof(_Tp)>0, This patch just removes nullptr from the initialization of std::unique_ptr<RemoteExecutorProcessControl> to avoid the issue. Patch by Tung D. Le (tung@jp.ibm.com). Thanks Tung! Reviewed By: lhames Differential Revision: https://reviews.llvm.org/D107247
-
Carl Ritson authored
Application of default mapping to BVH intrinsics was missing. Copy parts of SelectionDAG test to GlobalISel test as these would have indicated this error. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D107211
-
Freddy Ye authored
Differential Revision: https://reviews.llvm.org/D107245
-
Muhammad Omair Javaid authored
Test dependent on pexpect fail randomly with timeouts on Arm/AArch64 Linux buildbots. I am setting pexpect timeout from 30 to 60. I will revert this back if this doesnt improve random failures.
-
Muhammad Omair Javaid authored
This reverts commit fd18f0e8. I reverted this change to see its effect on failing GUI tests on LLDB Arm/AArch64 Linux buildbots. I could not find any evidence against this particular change so reverting it back. Differential Revision: https://reviews.llvm.org/D100243
-
Muhammad Omair Javaid authored
Following tests have been failing randomly on LLDB Arm and AArch64 Linux builtbots: TestMultilineNavigation.py TestMultilineCompletion.py TestIOHandlerCompletion.py TestGuiBasic.py I have increased allocated CPU resources to these bots but it has not improved situation to an acceptable level. This patch marks them as skipped on Arm/AArch64 for now.
-
Michael Kruse authored
The -fms-extensions converts __pragma (and _Pragma) into a #pragma that has to occur at the beginning of a line and end with a newline. This patch ensures that the newline after the #pragma is added even if Token::isAtStartOfLine() indicated that we should not start a newline. Committing relying post-commit review since the change is small, some downstream uses might be blocked without this fix, and to make clear the decision of the new -fminimize-whitespace feature (fix on main, revert on clang-13.x branch) suggested by @aaron.ballman in D104601. Differential Revision: https://reviews.llvm.org/D107183
-
Douglas Chen authored
Add IdentifierNamingCheck::CaseType, CT_HungarianNotation, supporting naming check with Hungarian notation. Differential Revision: https://reviews.llvm.org/D86671
-
Mateusz Mikuła authored
Postgresql uses `--stack=` in its Makefile. Downstream issue: https://github.com/msys2/MINGW-packages/pull/9167 Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D107237
-
Martin Storsjö authored
Use `clang_target_link_libraries` to avoid duplicate libraries when the same symbol is provided both by a static library and a larger dylib, fixing linking with win32 dylibs. This fixes errors like these: ld.lld: error: duplicate symbol: llvm::createStringError(std::__1::error_code, char const*) >>> defined at libLLVMSupport.a(Error.cpp.obj) >>> defined at libLLVM-14git.dll This matches how other clang tools declare their dependencies. Differential Revision: https://reviews.llvm.org/D107231 -
Dave Lee authored
Change `ThreadPlanStack::PopPlan` and `::DiscardPlan` to not do the following: 1. Move the last plan, leaving a moved `ThreadPlanSP` in the plans vector 2. Operate on the last plan 3. Pop the last plan off the plans vector This leaves a period of time where the last element in the plans vector has been moved. I am not sure what, if any, guarantees there are when doing this, but it seems like it would/could leave a null `ThreadPlanSP` in the container. There are asserts in place to prevent empty/null `ThreadPlanSP` instances from being pushed on to the stack, and so this could break that invariant during multithreaded access to the thread plan stack. An open question is whether this use of `std::move` was the result of a measure performance problem. Differential Revision: https://reviews.llvm.org/D106171
-