- May 17, 2023
-
-
David Sherwood authored
This patch does simple refactoring of the tail-folding option in preparation for enabling tail-folding by default for neoverse-v1. It adds a default tail-folding option field to the AArch64Subtarget class that can be set on a per-CPU. Differential Revision: https://reviews.llvm.org/D149659
-
Stefan Gränitz authored
This patch adds test infrastructure to utilize the GNUstep runtime in the LLDB test suite and adds coverage for features that already work on Linux. These seem accidental in parts, but it's a good early baseline. On Windows nothing works yet. Please find the repository for the GNUstep ObjC runtime here: https://github.com/gnustep/libobjc2 GNUstep support is disabled by default. CMake configuration involves two variables: * `LLDB_TEST_OBJC_GNUSTEP=On` enables GNUstep support in the test suite. It requires the libobjc2 shared library and headers to be found. * `LLDB_TEST_OBJC_GNUSTEP=Off` disables GNUstep support in the test suite and resets associated cache values if necessary (default). * `LLDB_TEST_OBJC_GNUSTEP_DIR` allows to pass a custom installation root. Differential Revision: https://reviews.llvm.org/D146058
-
Dmitry Vyukov authored
Some bots failed with: buildgo.sh: 173: [: linux: unexpected operator Unknown platform https://lab.llvm.org/buildbot/#/builders/247/builds/4603 Reviewed By: dyung Differential Revision: https://reviews.llvm.org/D150760
-
Jonas Hahnfeld authored
This option was renamed a long time ago in commit 388cefa7.
-
Dmitri Gribenko authored
-
Timm Bäder authored
M is not used anywhere else.
-
varconst authored
- add the `from_range_t` constructors and the related deduction guides; - add the `insert_range`/`assign_range`/etc. member functions. (Note: this patch is split from https://reviews.llvm.org/D142335) Differential Revision: https://reviews.llvm.org/D149827
-
Fangrui Song authored
Resolve a FIXME. When -ftest-profile, -fprofile-arcs, or --coverage is specified and the driver performs both compilation and linking phases, derive the .gcno & .gcda file names from -o and -dumpdir. `clang --coverage d/a.c d/b.c -o e/x && e/x` will now emit `e/x-[ab].gc{no,da}` like GCC. For -fprofile-dir=, we make the deliberate decision to not mangle the input filename if relative. The following script demonstrates the .gcno and .gcda filenames. ``` PATH=/tmp/Rel/bin:$PATH # adapt according to your build directory mkdir -p d e f echo 'int main() {}' > d/a.c echo > d/b.c a() { rm $@ || exit 1; } clang --coverage d/a.c d/b.c && ./a.out a a-[ab].gc{no,da} clang --coverage d/a.c d/b.c -o e/x && e/x a e/x-[ab].gc{no,da} clang --coverage d/a.c d/b.c -o e/x -dumpdir f/ && e/x a f/[ab].gc{no,da} clang --coverage -fprofile-dir=f d/a.c d/b.c -o e/x && e/x a e/x-[ab].gcno f/e/x-[ab].gcda clang -c --coverage d/a.c d/b.c && clang --coverage a.o b.o && ./a.out a [ab].gc{no,da} clang -c --coverage -fprofile-dir=f d/a.c d/b.c && clang --coverage a.o b.o && ./a.out a [ab].gcno f/[ab].gcda clang -c --coverage d/a.c -o e/xa.o && clang --coverage e/xa.o && ./a.out a e/xa.gc{no,da} clang -c --coverage d/a.c -o e/xa.o -dumpdir f/g && clang --coverage e/xa.o && ./a.out a f/ga.gc{no,da} ``` The gcov code accidentally claims -c and -S, so -fsyntax-only -c/-S and -E -c/-S don't leave to a -Wunused-command-line-argument warning. Keep the unintended code for now. -
Guozhi Wei authored
This reverts commit d6811826. It caused sanitized bootstrap failure.
-
Balázs Kéri authored
If a wrong (too small) buffer argument is found, the dynamic buffer size and values of connected arguments are displayed in the warning message, if these are simple known integer values. Reviewed By: Szelethus Differential Revision: https://reviews.llvm.org/D149321
-
Dmitry Vyukov authored
Allow user to provide target GOOS/GOARCH. If not provided, use the host GOOS/GOARCH as we do now. This allows to cross-compile the runtime. Also provide SKIP_TEST knob for cross-compilation since the test will most likely not run on host. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D150650
-
Carl Ritson authored
-
Carl Ritson authored
-
Evgenii Kudriashov authored
Inspired by https://discourse.llvm.org/t/folding-memory-into-fma/69217 Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D146494
-
Evgenii Kudriashov authored
Differential Revision: https://reviews.llvm.org/D147017
-
Fangrui Song authored
-
Fangrui Song authored
-fsyntax -c is supposed to lead to a -Wunused-command-line-argument warning. There is currently no due to a gcov FIXME in addPGOAndCoverageFlags.
-
ManuelJBrito authored
This patch updates the transformations in InstCombineVectorOps to use the new hufflevector semantics that say that undefined values in the mask yield poison. To prevent miscompilations we have to match with m_Poison instead of m_Undef. Otherwise, we might introduce poison where there was previously undef. Differential Revision: https://reviews.llvm.org/D150039
-
Tobias Gysi authored
Add the saturation arithmetic intrinsics to the LLVM dialect. Reviewed By: Dinistro Differential Revision: https://reviews.llvm.org/D150676
-
LLVM GN Syncbot authored
-
Hui authored
This change contains three util classes that were out from D145183 to make incremental progress - automic_unique_lock - intrusive_list - intrusive_shared_ptr Differential Revision: https://reviews.llvm.org/D150205
-
Thurston Dang authored
This addresses another buildbot breakage: https://lab.llvm.org/buildbot/#/builders/37/builds/22166 My patch, https://reviews.llvm.org/D150708 introduced stubs for common interceptor macros; these had unused variables and functions. An earlier patch fixed the unused variables; this patch suppresses unused-functions warnings.
-
Jie Fu authored
In file included from /data/llvm-project/compiler-rt/lib/hwasan/hwasan_interceptors.cpp:141: /data/llvm-project/compiler-rt/lib/hwasan/../sanitizer_common/sanitizer_common_interceptors.inc:1044:13: error: unused function 'write_iovec' [-Werror,-Wunused-function] static void write_iovec(void *ctx, struct __sanitizer_iovec *iovec, ^ /data/llvm-project/compiler-rt/lib/hwasan/../sanitizer_common/sanitizer_common_interceptors.inc:1053:13: error: unused function 'read_iovec' [-Werror,-Wunused-function] static void read_iovec(void *ctx, struct __sanitizer_iovec *iovec, ^ /data/llvm-project/compiler-rt/lib/hwasan/../sanitizer_common/sanitizer_common_interceptors.inc:10363:13: error: unused function 'InitializeCommonInterceptors' [-Werror,-Wunused-function] static void InitializeCommonInterceptors() { ^ 3 errors generated. -
Hongtao Yu authored
The dwarf discriminator field for pseudo probes is not supposed to be used until the first FS discriminator pass. Unfortunately there are always corner cases that accidientally set this field. For example, the inliner could set this field for an inlined instruction if the instruction does not come with any debug information. While fixing all such spots is possible, but for future-proff I'd like to enforce a general cleanup before assigning probes any FS discriminator. Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D150741
-
Hongtao Yu authored
Despite previous effort {D148569} to avoid screwing up existing disrminator field, I'm still seeing some call probes getting a non-zero discriminator eventually in non-FS mode. It could be related to callsite merge. While they are investigated I'm disabling discriminator emission for non-FS mode. This avoids breaking the compatiblity with older tools like llvm-profgen and bolt. Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D150625 -
Joshua Cao authored
After landing more precise trip multiples in https://reviews.llvm.org/D149529, the SCEV multiple computation handles constants, so there is no longer any need for special constant handling in getSmallConstantTripMultiple. This patch can improve the multiple of a non-constant SCEV that is huge (>=2**32). This is very rare in practice. Differential Revision: https://reviews.llvm.org/D150541
-
Thurston Dang authored
This (hopefully) fixes the buildbot breakage: https://lab.llvm.org/buildbot/#/builders/77/builds/26793 My patch, https://reviews.llvm.org/D150708 introduced stubs for common interceptor macros; these had unused variables. This patch suppresses unused-variable warnings.
-
XinWang10 authored
Add expensive check that Uses, Defs are same for entries in memory folding table. MemFolding could not change the Uses/Defs. Reviewed By: skan Differential Revision: https://reviews.llvm.org/D150633
-
Sameer Sahasrabuddhe authored
When an instruction is determined to be divergent, not all its outputs are divergent. The users of only divergent outputs should now be examined for divergence. Also, replaced a repeating pattern of "if new divergent instruction, then add to worklist" by combining it into a single function. This does not cause any change in functionality. Reviewed By: foad, arsenm Differential Revision: https://reviews.llvm.org/D150636
-
Kazu Hirata authored
The corresponding function definition was removed by: commit e82a0084 Author: Sam Parker <sam.parker@arm.com> Date: Fri Sep 25 09:36:40 2020 +0100
-
khei4 authored
Differential Revision: https://reviews.llvm.org/D150422
-
Kazu Hirata authored
-
Kazu Hirata authored
The last use was removed by: commit 9eb75c45 Author: Krzysztof Parzyszek <kparzysz@codeaurora.org> Date: Fri Jun 30 21:21:40 2017 +0000
-
Kazu Hirata authored
The last uses were removed by: commit 8cda34f5 Author: Tim Northover <tnorthover@apple.com> Date: Wed Mar 11 18:54:22 2015 +0000
-
Kazu Hirata authored
The unused declaration was introduced without a corresponding function definition in: commit f5d07a05 Author: Krzysztof Parzyszek <kparzysz@quicinc.com> Date: Mon Sep 7 14:26:48 2020 -0500
-
Jianjian GUAN authored
This patch does the following things: 1, Add accurate Predicates in intrinsic-pseudo pattern class depending on the vector type. 2, Make vmulh, vmulhsu, vmulhu and vsmul intrinsic only able to select in v extension. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D150550
-
Kazu Hirata authored
The corresponding function definition was removed by: commit b2680c71 Author: Andrew Trick <atrick@apple.com> Date: Tue Jun 5 03:44:43 2012 +0000
-
Kazu Hirata authored
The corresponding function definition was removed by: commit e891654a Author: Evan Cheng <evan.cheng@apple.com> Date: Tue Aug 30 01:34:54 2011 +0000 While we are at it, this patch removes ARMPCLabelIndex, for which the host compiler issues an unused variable warning.
-
Jason Molenda authored
Instead of doing the local filesystem scan for kexts and kernels when the PlatformDarwinKernel is constructed, delay doing it until the scan is needed. Differential Revision: https://reviews.llvm.org/D150621 rdar://109186357
-
Guozhi Wei authored
This patch implements the enhancement proposed by https://github.com/llvm/llvm-project/issues/59312. Suppose we have following code v0 = load %addr br %LoadBB LoadBB: v1 = load %addr ... PredBB: ... br %cond, label %LoadBB, label %SuccBB SuccBB: v2 = load %addr ... Instruction v1 in LoadBB is partially redundant, edge (PredBB, LoadBB) is a critical edge. SuccBB is another successor of PredBB, it contains another load v2 which is identical to v1. Current GVN splits the critical edge (PredBB, LoadBB) and inserts a new load in it. A better method is move the load of v2 into PredBB, then v1 can be changed to a PHI instruction. If there are two or more similar predecessors, like the test case in the bug entry, current GVN simply gives up because otherwise it needs to split multiple critical edges. But we can move all loads in successor blocks into predecessors. Differential Revision: https://reviews.llvm.org/D141712
-