- Nov 30, 2022
-
-
Dmitry Preobrazhensky authored
Differential Revision: https://reviews.llvm.org/D138710
-
Tim Northover authored
The probes are all inserted at the iterator passed into the functions, so that's where any EFLAGS clobbering will happen and where we need it to be dead. Fixes: https://github.com/llvm/llvm-project/issues/59121
-
Jay Foad authored
-
Nicolai Hähnle authored
-
Muhammad Omair Javaid authored
Flang build on windows with MSVC environment and clang-cl compiler requires clang_rt.builtin.${target} library. This patch allows us to locate and include this link library. This is mostly needed for flang runtime and associated unittests as it requires the uint128 division builtin function __udivti3. Reviewed By: DavidTruby Differential Revision: https://reviews.llvm.org/D138023 -
Gabor Buella authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D138386
-
Vignesh Balasubramanian authored
This reverts commit 451c017a.
-
Tom Eccles authored
-
Nicolai Hähnle authored
Following up on the removal of BufferPSV in commit 43b86bf9 ("AMDGPU: Remove BufferPseudoSourceValue") It is unclear what exactly the right address space for images should be. They seem morally closest to buffers, so that's what I went with. In practical terms, address space 7 is better than address space 0 because it can't alias with LDS. Differential Revision: https://reviews.llvm.org/D138949
-
Corentin Jabot authored
-
Corentin Jabot authored
Implement https://cplusplus.github.io/CWG/issues/2631.html. Immediate calls in default arguments and defaults members are not evaluated. Instead, we evaluate them when constructing a `CXXDefaultArgExpr`/`BuildCXXDefaultInitExpr`. The immediate calls are executed by doing a transform on the initializing expression. Note that lambdas are not considering subexpressions so we do not need to transform them. As a result of this patch, unused default member initializers are not considered odr-used, and errors about members binding to local variables in an outer scope only surface at the point where a constructor is defined. Reviewed By: aaron.ballman, #clang-language-wg Differential Revision: https://reviews.llvm.org/D136554
-
Vignesh Balasubramanian authored
It was disabled due to different failures it different llvm bots. Reviewed By: ye-luo Differential Revision: https://reviews.llvm.org/D138411
-
gonglingqin authored
This patch is required by OpenMP. After applying this patch, OpenMP regression test passed. To reduce review difficulty caused by too large patches, atomicrmw min/max operations on LA32 will be added later. Differential Revision: https://reviews.llvm.org/D138177
-
Timm Bäder authored
The calling convention is: [RVO pointer] [instance pointer] [... args ...] We handle the instance pointer ourselves, BUT for the RVO pointer, we just assumed in visitReturnStmt() that it is on top of the stack. Which isn't true if there are other args present (and a this pointer, maybe). Fix this by recording the RVO pointer explicitly when creating an InterpFrame, just like we do with the instance/This pointer. There is already a "RVOAndParams()" test in test/AST/Inter/records.cpp, that was supposed to test this, however, it didn't trigger any problematic behavior because the parameter and the return value have the same type. Differential Revision: https://reviews.llvm.org/D137392
-
Dmitry Vyukov authored
epoll_pwait2 is new and may not be present in libc and/or kernel. Since we effectively add it to libc (as will be probed by the program using dlsym or a weak function pointer) we need to handle the case when it's not present in the actual libc. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D138929
-
Timm Bäder authored
This way we're invoking the copy constructor, which might be necessary if the argument is not trivially constructible. Differential Revision: https://reviews.llvm.org/D138554
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D136936
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D136920
-
Valentin Clement authored
Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D138921
-
Dmitry Vyukov authored
This reverts commit e6aea4a5. Broke tests: https://lab.llvm.org/buildbot/#/builders/16/builds/38992
-
Matthias Springer authored
The previous error message was confusing. Also improve code documentation and some minor code cleanups. Differential Revision: https://reviews.llvm.org/D138902
-
Timm Bäder authored
Differential Revision: https://reviews.llvm.org/D136457
-
wangpc authored
The original intention is adding a list of SchedWrites (which is a default argument of ReadAdvance) to LMULReadAdvance, but it may not be practical that there are two default arguments in one class. So we add variants that are intended for widening and narrowing instructions with postfix "W" and remove lmuls argument. Reviewed By: michaelmaitland Differential Revision: https://reviews.llvm.org/D138640
-
Dmitry Vyukov authored
Currently per-function metadata consists of: (start-pc, size, features) This adds a new UAR feature and if it's set an additional element: (start-pc, size, features, stack-args-size) Reviewed By: melver Differential Revision: https://reviews.llvm.org/D136078
-
Thomas Symalla authored
This function removes the mentioned function, as it only does two checks which are already implemented as part of SelectionDAG::isKnownNeverNaN - which is called there. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D138938
-
Rong Xu authored
We need to flatten the SampleFDO profile in profile supplementation because the InstrFDO profile does not have inlined callsite counters. Without flattening profile, FDO optimizations are not stable: we will not supplement the second generation profile when the modified functions are all inlined. This patch fixes this issue: we will flatten the profile for functions that appears in FDO profile. Note that we only need to find the hot/warm functions in SampleFDO profile, so we will not perform a full flatten. We will use a DFS traversal to compute the accumulated entry count and max bodycount. This is much cheaper than full flattening. Differential Revision: https://reviews.llvm.org/D138893
-
Petr Hosek authored
It may be necessary to build additional targets before running perf-training, the typical use case would be builtins and runtimes. This change allows users to specify those dependencies as: set(CLANG_PERF_TRAINING_DEPS builtins runtimes CACHE STRING "") Differential Revision: https://reviews.llvm.org/D138974
-
Evgenii Kudriashov authored
Reviewed By: RKSimon, pengfei Differential Revision: https://reviews.llvm.org/D138734
-
Gabriel F. T. Gomes authored
The -fcf-protection option takes an optional argument, which allows the requesting of control-flow protection on returns, or on indirect jumps and calls, or both. One of the comments in the code applies to returns, yet it mentions branches (for indirect calls and jumps). This patch fixes this obvious typo. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D117836
-
Petr Hosek authored
.cc and .test are commonly used and supported by other lit test suites. Differential Revision: https://reviews.llvm.org/D138975
-
Vasileios Porpodas authored
Currently the only way to do this is to work with the instruction list directly. This is part of a series of cleanup patches towards making BasicBlock::getInstList() private. Differential Revision: https://reviews.llvm.org/D138875
-
Murali Vijayaraghavan authored
[mlir][linalg] Changing the positions of introduced parallel loop in SplitReduction to be consistent with IREE's downstream passes IREE's passes depend on the behavior of SplitReduction's introduced parallel loop being the same as the introduced dimension in the intermediate tensor (the order of loops was changed in https://reviews.llvm.org/D137478). Differential Revision: https://reviews.llvm.org/D138972
-
Freddy Ye authored
Reviewed By: LuoYuanke, pengfei Differential Revision: https://reviews.llvm.org/D138900
-
Petr Hosek authored
We already know that there are no free blocks above Region->AllocatedUser. This results in a smaller RegionPageMap and faster releaseFreeMemoryToOS. Patch By: fabio-d Differential Revision: https://reviews.llvm.org/D138794
-
Petr Hosek authored
Fixes a warning about a potentially unsupported template argument deduction by explicitly specifying the template type in std::lock_guard. Patch By: brettw Differential Revision: https://reviews.llvm.org/D138961
-
chenglin.bi authored
(X || Y) ? X : Y --> X https://alive2.llvm.org/ce/z/oRQJee Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D138815
-
Craig Topper authored
We need the vlse node to have a chain output and it should replace the chain output of the original load.
-
Vasileios Porpodas authored
Differential Revision: https://reviews.llvm.org/D138605
-
Jakub Kuderski authored
Add a new version of `zip` that assumes that all iteratees have equal lengths. The difference compared to `zip_first` is that `zip_equal` checks this assumption in builds with assertions enabled. This will allow us to clearly express the intent when working with equally-sized ranges without having to write this assertion manually. This is similar to Python's `zip(..., equal=True)` [1] or `more_itertools.zip_equal` [2]. I saw this first suggested by @benvanik. [1] https://peps.python.org/pep-0618/ [2] https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.zip_equal Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D138865
-
Jakub Kuderski authored
Update the documentation comment and add a new test case. Add an assertion in `zip_first` checking the iteratee length precondition. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D138858
-