- Dec 24, 2022
-
-
serge-sans-paille authored
This avoids recomputing string length that is already known at compile time. It has a slight impact on preprocessing / compile time, see https://llvm-compile-time-tracker.com/compare.php?from=3f36d2d579d8b0e8824d9dd99bfa79f456858f88&to=e49640c507ddc6615b5e503144301c8e41f8f434&stat=instructions:u This is a recommit of 719d98df that into account a GGC issue (probably https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92181) when dealing with intiailizer_list and constant expressions. Workaround this by avoiding initializer list, at the expense of a temporary plain old array. Differential Revision: https://reviews.llvm.org/D139881
-
Vitaly Buka authored
Breaks HWASAN somehow. Fails at def915c3 https://lab.llvm.org/buildbot/#/builders/236/builds/1547 Pass at def915c3^ https://lab.llvm.org/buildbot/#/builders/236/builds/1529 This reverts commit def915c3.
-
Craig Topper authored
-
Lang Hames authored
rdar://103599609
-
Phoebe Wang authored
@arsenm raised a good question that we should use a flag guard. But I found it is not a problem as long as user uses intrinsics only: https://godbolt.org/z/WoYsqqjh3 Anyway, it is still nice to have. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D140467
-
Stella Stamenova authored
This reverts commit 281c2d49. This broke the windows mlir buildbot: https://lab.llvm.org/buildbot/#/builders/13/builds/30167
-
Stella Stamenova authored
This reverts commit 85e38d7c. This broke the windows mlir buildbot: https://lab.llvm.org/buildbot/#/builders/13/builds/30180/steps/6/logs/stdio
-
Jez Ng authored
Errors / warnings that originate from a particular file should be of the form `$file: $message`. Reviewed By: #lld-macho, keith Differential Revision: https://reviews.llvm.org/D140634
-
Roman Lebedev authored
-
Owen Anderson authored
Inspecting the downstream use of the cpyAlign, it is clear that `performCallSlotOptzn` is expecting it to represent the alignment of the copy destination, not the minimum of the src and dest alignments. This patch renames the parameter to make this more obvious. I believe this change is NFC, because the downstream code has alignment checks such that it all works out in the end. I have not been able to construct a test case that actually triggers a change in output. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D140603
-
Roman Lebedev authored
-
Craig Topper authored
-
David Blaikie authored
Explicit instantiations should be declared. Found with -Wundefined-func-template. Reviewed By: dblaikie, rriddle Differential Revision: https://reviews.llvm.org/D140594
-
Jez Ng authored
This will enable us to re-land {D139069}. The issue with the original diff was that we were folding all private-label symbols. We were not merging the symbol flags during this folding; instead we just made all references to the folded symbol point to its aliasee. This caused some flags to be incorrectly discarded. This surfaced as code that was incorrectly stripped due to LLD dropping the `.no_dead_strip` flag. This diff fixes things by only folding flag-less private-label aliases. Most (maybe all) of the `ltmp<N>` symbols that are generated by the MC aarch64 backend are flag-less, so this conservative folding behavior does the job. Reviewed By: #lld-macho, thakis Differential Revision: https://reviews.llvm.org/D140606 -
Craig Topper authored
This comment talks about sign of the dividend and the result. I think it belongs to the srem function. This is the commit that added it https://github.com/llvm/llvm-project/commit/709a820a5338ca5c4b949f2f0286f7da39f00661 and the code change with it was for srem. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D140611
-
Craig Topper authored
The comment says this is for clang 3.3. Our build requirements are clang 5.0 or newer so I think we can remove this. Reviewed By: nikic, RKSimon Differential Revision: https://reviews.llvm.org/D140613
-
Roman Lebedev authored
[NFC][Codegen][X86] Add codegen test coverage for the variably-indexed load of alloca w/zero upper half
-
Roman Lebedev authored
This is the actual pattern i'm looking at.
-
Alexandros Lamprineas authored
Required for D140210 in order to disable FuncSpec at {Os, Oz} optimization levels. Differential Revision: https://reviews.llvm.org/D140564 -
Pengxuan Zheng authored
This is to work around a singularity container issue we ran into recently. The container fails to honor the time zone setting (TZ=UTC) when executing the touch command. Replacing UTC with GMT worked correctly in the container. This change does not change (at least not intentionally) the function of the test in any way since GMT and UTC should be equivalent AFAIK. Please refer to the discussions in D139980 for more background information. Reviewed By: int3, #lld-macho Differential Revision: https://reviews.llvm.org/D140233
-
Dani Ferreira Franco Moura authored
Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D140626
-
Jez Ng authored
For consistency.
-
Mark de Wever authored
No real changes were needed, but add an assert for the pre-condition. This implements: - 3738 Missing preconditions for take_view constructor Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D140568
-
Mark de Wever authored
The noexcept was already implemented, this only updates the synposis and adds tests to validate that the functions are noexcept. This implements: - LWG3745 std::atomic_wait and its friends lack noexcept Reviewed By: #libc, philnik Differential Revision: https://reviews.llvm.org/D140575
-
Alexey Bataev authored
-
- Dec 23, 2022
-
-
Nick Kreeger authored
Author: Laszlo Kindrat <laszlokindrat@gmail.com> Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D140322
-
Shilei Tian authored
[NFC][OpenMP] Fix compile warning caused by using `std::move` on a local object on a `return` statement
-
Nikita Popov authored
-
Roman Lebedev authored
Depending on the particular DAG, we might either create a `freeze`, or not. And only in the former case, the cycle would be formed. It would be nicer to have `ReplaceAllUsesOfValueWithIf()`, like we have in IR, but we don't have that. Fixes https://github.com/llvm/llvm-project/issues/59677
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Nikolas Klauser authored
Reviewed By: #libc, ldionne Spies: jwakely, beanz, smeenai, cfe-commits, tschuett, avogelsgesang, Mordante, sstefan1, libcxx-commits, ldionne, mgorny, arichardson, miyuki Differential Revision: https://reviews.llvm.org/D131963
-
Mikhail Goncharov authored
for https://reviews.llvm.org/D140224
-
Nico Weber authored
-
ibricchi authored
Move the plugin used in the unittest to test Inline Advisor Plugins into a separate folder to clean up the cmake file for the analysis tests. Differential Revision: https://reviews.llvm.org/D140559
-
Roman Lebedev authored
The original code was confusing. It was stripping poison-generating flags, but the comments were saying that doing so was a TODO. If the poison-generating flags are present, then even if all operands are guaranteed not to be undef or poison, the whole operation may still produce undef or poison. We can still deal with that case, and we already do deal with it in fact, by also dropping those flags. Refs. https://github.com/llvm/llvm-project/issues/59676
-
Roman Lebedev authored
Lack of such operands implies that the op might be poison-producing due to it's flags. We seem to drop them already, but the comments are confusing. Fixes https://github.com/llvm/llvm-project/issues/59676
-
Ilya Andreev authored
Two comparison operations and a logical operation are combined into selection using MIN or MAX and comparison operation. For optimization to be applied conditions have to be satisfied: 1. In comparison operations has to be the one common operand. 2. Supports only signed and unsigned integers. 3. Comparison has to be the same with respect to common operand. 4. There are no more users of comparison except logic operation. 5. Every combination of comparison and AND, OR are supported. It will convert %l0 = %a < %c %l1 = %b < %c %res = %l0 or %l1 into %sel = min(%a, %b) %res = %sel < %c It supports several comparison operations (<, <=, >, >=), signed, unsigned values and different order of operands if they do not violate conditions. Differential Revision: https://reviews.llvm.org/D134277
-
Ilya Andreev authored
Two comparison operations and a logical operation are combined into selection using MIN or MAX and comparison operation. For optimization to be applied conditions have to be satisfied: 1. In comparison operations has to be the one common operand. 2. Supports only signed or unsigned integers. 3. Comparison has to be the same with respect to common operand. 4. There are no more users of comparison except logic operation. 5. Every combination of comparison and AND, OR are supported. It will convert %l0 = %a < %c %l1 = %b < %c %res = %l0 or %l1 into %sel = min(%a, %b) %res = %sel < %c It supports several comparison operations (<, <=, >, >=), signed, unsigned values and different order of operands if they do not violate conditions.
-