- Aug 29, 2022
-
-
Kazu Hirata authored
-
Kazu Hirata authored
This patch removes greatestCommonDivisor and GreatestCommonDivisor64 as I've migrated all the uses to std::gcd.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Benjamin Kramer authored
-
owenca authored
When an l_brace is wrapped and the line above it ends with a comment, the annotator adds ColumnLimit to the TotalLength of the l_brace, so the actual column position of the l_brace must be adjusted accordingly. Fixes #57376. Differential Revision: https://reviews.llvm.org/D132805
-
Andrey Tretyakov authored
Differential Revision: https://reviews.llvm.org/D132562
-
Fangrui Song authored
To align with many Linux distributions which configure GCC with --enable-default-hash-style=gnu or binutils with --with-linker-hash-style=gnu. ld.lld does not support changed default, so passing the option in the driver is better. Note: there was a bug that Debian specified both --hash-style=gnu and --hash-style=both. Actually its GCC has defaulted to --hash-style=gnu since 2007.
-
Shoaib Meenai authored
https://reviews.llvm.org/D93267 implemented handling more than 127 compact unwind encodings, and https://reviews.llvm.org/D123435 and https://reviews.llvm.org/D124561 implemented stripping redundant __eh_frame entries.
-
Fangrui Song authored
This has been the default for a very long time.
-
Alexey Baturo authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131343
-
Alexey Baturo authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131574
-
Alexey Baturo authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131342
-
Kazu Hirata authored
To avoid changing semantics inadvertently, this patch casts arguments to uint64_t before calling std::gcd.
-
Kazu Hirata authored
This patch replaces calls to greatestCommonDivisor with std::gcd where two arguments are of the same type. This means that std::common_type_t of the argument type is the same as the argument type. We could drop calls to std::abs in some cases, but that's left for another patch.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Katherine Rasmussen authored
Splitting up the tests for the synchronization statements, event statements, and error stop statement allow for some of the errors which are hidden by other errors, to be caught in the test. This then reveals which invalid code does produce errors and which does not produce errors.
-
Alexey Baturo authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131341
-
- Aug 28, 2022
-
-
Sanjay Patel authored
https://alive2.llvm.org/ce/z/rcbZmx Sibling tranform to 275aa24c This pattern is seen in the examples in issue #57381.
-
Alexey Baturo authored
Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131340
-
zhongyunde authored
As the commit of D132658, make the 'nuw' change separately. Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D132777
-
Florian Hahn authored
This addresses a suggestion to simplify the check from D131989. This also makes it easier to ensure that VPHeaderPHIRecipe::classof checks for all header phi ids.
-
Sanjay Patel authored
~(iN X s>> (N-1)) & Y --> (X s< 0) ? 0 : Y -- with optional sext https://alive2.llvm.org/ce/z/wFFnZT
-
Sanjay Patel authored
-
Anubhab Ghosh authored
MapperJITLinkMemoryManager combined with SharedMemoryMapper can be used in place of EPCGenericJITLinkMemoryManager when running on top of same physical memory. This commit enables it when --use-shared-memory is passed. Differential Revision: https://reviews.llvm.org/D132369
-
Benjamin Kramer authored
-
Pavel Samolysov authored
The ArgumentPromotion pass uses Mem2Reg promotion at the end to cutting down generated `alloca` instructions as well as meaningless `store`s and this behavior can leave unused (dead) arguments. To eliminate the dead arguments and therefore let the DeadCodeElimination remove becoming dead inserted `GEP`s as well as `load`s and `cast`s in the callers, the DeadArgumentElimination pass should be run after the ArgumentPromotion one. Differential Revision: https://reviews.llvm.org/D128830
-
Daniel Bertalan authored
This option outputs the location, encoded value and target of chained fixups, using the same format as `otool -dyld_info`. This initial implementation only supports the DYLD_CHAINED_PTR_64 and DYLD_CHAINED_PTR_64_OFFSET pointer encodings, which are used in x86_64 and arm64 userspace binaries. When Apple's effort to upstream their chained fixups code continues, we'll replace this code with the then-upstreamed code. But we need something in the meantime for testing ld64.lld's chained fixups code. Differential Revision: https://reviews.llvm.org/D132036
-
Sheng authored
-
Kazu Hirata authored
-
Kazu Hirata authored
Identified with readability-redundant-declaration.
-
Kazu Hirata authored
This patch replaces calls to greatestCommonDivisor with std::gcd where both arguments are known to be of unsigned. This means that std::common_type_t of the two argument types should just be the wider one of the two.
-
Kazu Hirata authored
The use of std::clamp here is safe because the definition of largestLDKind gurantees that 8 <= largestLDKind.
-
Amir Ayupov authored
Replace the imperative pattern of the following kind ``` bool IsTrue = false; for (Element : Range) { if (Condition(Element)) { IsTrue = true; break; } } ``` with functional style `llvm::any_of`: ``` bool IsTrue = llvm::any_of(Range, [&](Element) { return Condition(Element); }); ``` Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D132276 -
Kazu Hirata authored
We can safely use std::clamp here because the call to report_size_overflow a few lines above guarantees MinSize <= MaxSize.
-
Kazu Hirata authored
Identified with modernize-use-nullptr.
-
Kazu Hirata authored
Identified with readability-redundant-control-flow.
-
Kazu Hirata authored
Identified with readability-string-compare.
-