- Jul 20, 2022
-
-
Sriraman Tallam authored
Differential Revision: https://reviews.llvm.org/D129903
-
Sriraman Tallam authored
Differential Revision: https://reviews.llvm.org/D129899
-
Slava Zakharin authored
The change makes sure the plain C string statistics names are properly ordered. Differential Revision: https://reviews.llvm.org/D130122
-
LLVM GN Syncbot authored
-
Siva Chandra Reddy authored
Reviewed By: jeffbailey Differential Revision: https://reviews.llvm.org/D130112
-
Zequan Wu authored
Differential Revision: https://reviews.llvm.org/D129807
-
Anubhab Ghosh authored
...with more fixes. The original patch was reverted in 3e9cc543 due to bot failures caused by a missing dependence on librt. That issue was fixed in 32d8d23c, but that commit also broke sanitizer bots due to a bug in SimplePackedSerialization: empty ArrayRef<char>s triggered a zero-byte memcpy from a null source. The ArrayRef<char> serialization issue was fixed in 67220c2a, and this patch has also been updated with a new custom SharedMemorySegFinalizeRequest message that should avoid serializing empty ArrayRefs in the first place. https://reviews.llvm.org/D128544
-
Nick Desaulniers authored
This reverts commit 08860f52. Crashes during PPC64LE linux kernel builds as reported by @nathanchance. https://reviews.llvm.org/D129997#3663632
-
Lang Hames authored
DWARFRecordSectionSplitter pre-builds a splitBlock cache, but wasn't passing it to the call to splitBlock. This was an oversight in the original patch.
-
Kaining Zhong authored
This fixes https://github.com/llvm/llvm-project/issues/56059 and https://github.com/llvm/llvm-project/issues/56440. This is inspired by tapthaker's patch (https://reviews.llvm.org/D127941), and has reused his test cases. This patch adds an bool "isCommandLineLoad" to indicate where archives are from. If lld tries to load the same library loaded previously by LC_LINKER_OPTION from CLI, it will use this isCommandLineLoad to determine if it should be affected by -all_load & -ObjC flags. This also prevents -force_load from affecting archives loaded previously from CLI without such flag, whereas tapthaker's patch will fail such test case (introduced by https://reviews.llvm.org/D128025). Reviewed By: int3, #lld-macho Differential Revision: https://reviews.llvm.org/D129556
-
Jacques Pienaar authored
This one required more changes than ideal due to overlapping generated name with different return types. Changed getIndexingMaps to getIndexingMapsArray to move it out of the way/highlight that it returns (more expensively) a SmallVector and uses the prefixed name for the Attribute. Differential Revision: https://reviews.llvm.org/D129919
-
Sanjay Patel authored
This reverts commit 9d1ea177. There are tests of update_llc_tests_checks.py that missed being updated.
-
Johannes Doerfert authored
For the longest time we used `AAValueSimplify` and `genericValueTraversal` to determine "potential values". This was problematic for many reasons: - We recomputed the result a lot as there was no caching for the 9 locations calling `genericValueTraversal`. - We added the idea of "intra" vs. "inter" procedural simplification only as an afterthought. `genericValueTraversal` did offer an option but `AAValueSimplify` did not. Thus, we might end up with "too much" simplification in certain situations and then gave up on it. - Because `genericValueTraversal` was not a real `AA` we ended up with problems like the infinite recursion bug (#54981) as well as code duplication. This patch introduces `AAPotentialValues` and replaces the `AAValueSimplify` uses with it. `genericValueTraversal` is folded into `AAPotentialValues` as are the instruction simplifications performed in `AAValueSimplify` before. We further distinguish "intra" and "inter" procedural simplification now. `AAValueSimplify` was not deleted as we haven't ported the re-materialization of instructions yet. There are other differences over the former handling, e.g., we may not fold trivially foldable instructions right now, e.g., `add i32 1, 1` is not folded to `i32 2` but if an operand would be simplified to `i32 1` we would fold it still. We are also even more aware of function/SCC boundaries in CGSCC passes, which is good even if some tests look like they regress. Fixes: https://github.com/llvm/llvm-project/issues/54981 Note: A previous version was flawed and consequently reverted in 6555558a.
-
Philip Reames authored
-
Louis Dionne authored
-
Louis Dionne authored
Leave the escape hatch in place with a note, but don't include the debug mode symbols by default since we don't support the debug mode in the normal library anymore. This is technically an ABI break for users who were depending on those debug mode symbols in the dylib, however those users will already be broken at compile-time because they must have been using _LIBCPP_DEBUG=2, which is now an error. Differential Revision: https://reviews.llvm.org/D127360
-
Slava Zakharin authored
mathOperations should now support all intrinsics that are handled by the llvmIntrinsics table + `tan` lowered as Math dialect operation + f128 flavor of abs. I am going to flip the default to late math lowering after this change, but still keep the fallback via pgmath. This will allow getting rid of the llvmIntrinsics table and continue populating only the mathOperations table, otherwise, updating both tables seems to be inconvenient. Differential Revision: https://reviews.llvm.org/D130048
-
Keith Smiley authored
This creates a symbol alias similar to --defsym in the elf linker. This is used by swiftpm for all executables, so it's useful to support. This doesn't implement -alias_list but that could be done pretty easily as needed. Differential Revision: https://reviews.llvm.org/D129938
-
Nico Weber authored
-
Sanjay Patel authored
This implements the main suggested change from issue #56498. Using the shorter (non-extending) instruction with only -Oz ("minsize") rather than -Os ("optsize") is left as a possible follow-up. As noted in the bug report, the zero-extending load may have shorter latency/better throughput across a wide range of x86 micro-arches, and it avoids a potential false dependency. The cost is an extra instruction byte. This could cause perf ups and downs from secondary effects, but I don't think it is possible to account for those in advance, and that will likely also depend on exact micro-arch. This does bring LLVM x86 codegen more in line with existing gcc codegen, so if problems are exposed they are more likely to occur for both compilers. Differential Revision: https://reviews.llvm.org/D129775 -
Sanjay Patel authored
-
Sam McCall authored
It generates a standalone HTML file with all needed JS/CSS embedded. This allows navigating the tree both with a tree widget and in the code, inspecting nodes, and selecting ambiguous alternatives. Demo: https://htmlpreview.github.io/?https://gist.githubusercontent.com/sam-mccall/03882f7499d293196594e8a50599a503/raw/ASTSignals.cpp.html Differential Revision: https://reviews.llvm.org/D130004
-
Arthur Eubanks authored
-
Denys Petrov authored
Summary: Get rid of explicit function splitting in favor of specifically designed Visitor. Move logic from a family of `evalCastKind` and `evalCastSubKind` helper functions to `SValVisitor`. Differential Revision: https://reviews.llvm.org/D130029
-
Benoit Jacob authored
Differential Revision: https://reviews.llvm.org/D130109
-
Rajas Vanjape authored
The code example for pass manager incorrectly uses nestedFunctionPM instead of nestedAnyPm for adding CSE and Canonicalize Passes. This diff fixes it by changing it to nestedAnyPm. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D130110
-
Philip Reames authored
-
Louis Dionne authored
Based on the discussion at [1], this patch adds a Clang flag called -fexperimental-library that controls whether experimental library features are provided in libc++. In essence, it links against the experimental static archive provided by libc++ and defines a feature that can be picked up by libc++ to enable experimental features. This ensures that users don't start depending on experimental (and hence unstable) features unknowingly. [1]: https://discourse.llvm.org/t/rfc-a-compiler-flag-to-enable-experimental-unstable-language-and-library-features Differential Revision: https://reviews.llvm.org/D121141
-
David Green authored
-
Philip Reames authored
-
Kamau Bridgeman authored
The compler-rt test case tsan/Linux/clone_setns.cpp fails on PowerPC64 RHEL 7.9 targets. Unshare fails with errno code EINVAL. It is unclear why this happens specifically on RHEL 7.9 and no other operating system like Ubuntu 18 or RHEL 8.4 for example. This patch uses marcos to disable the test case for ppc64 rhel7.9 because there are no XFAIL directives to target rhel 7.9 specifically. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D130086
-
Nico Weber authored
-
Nico Weber authored
-
Jonathan Peyton authored
Warnings that occur during affinity initialization are supposed to be guarded by KMP_AFFINITY=nowarnings,noverbose, but some had been missed by this logic. Create one macro for affinity warnings that takes these settings into account. Differential Revision: https://reviews.llvm.org/D125991
-
AndreyChurbanov authored
Added control to reset affinity of primary thread after outermost parallel region to initial affinity encountered before OpenMP runtime was initialized. KMP_AFFINITY environment variable reset/noreset modifier introduced. Default behavior is unchanged. Differential Revision: https://reviews.llvm.org/D125993
-
Jonathan Peyton authored
icc does not properly detect lack of fallthrough attribute since it defines __GNU__ > 7 and also icc's __has_cpp_attribute/__has_attribute feature detectors do not properly detect the lack of fallthrough attribute. Differential Revision: https://reviews.llvm.org/D126001
-
Philip Reames authored
-
AndreyChurbanov authored
Made library registration conditional and skip it in the __kmp_atfork_child handler, postponed it till middle initialization in the child. This fixes the problem of applications those use e.g. popen/pclose which terminate the forked child process. Differential Revision: https://reviews.llvm.org/D125996
-
Yusra Syeda authored
Differential Revision: https://reviews.llvm.org/D127328
-
Cole Kissane authored
- add zstd to `llvm::compression` namespace - add a CMake option `LLVM_ENABLE_ZSTD` with behavior mirroring that of `LLVM_ENABLE_ZLIB` - add tests for zstd to `llvm/unittests/Support/CompressionTest.cpp` - debian users should install libzstd when using `LLVM_ENABLE_ZSTD=FORCE_ON` from source due to this bug https://bugs.launchpad.net/ubuntu/+source/libzstd/+bug/1941956 Reviewed By: leonardchan, MaskRay Differential Revision: https://reviews.llvm.org/D128465
-