- Aug 29, 2022
-
-
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.
-
Kazu Hirata authored
Identified with readability-qualified-auto.
-
Kazu Hirata authored
-
Kazu Hirata authored
This patch replaces calls to GreatestCommonDivisor64 with std::gcd where both arguments are known to be of unsigned types no larger than 64 bits in size.
-
Arnab Dutta authored
Fold memref.expand_shape and memref.collapse_shape ops into their memref/affine load/store ops. Reviewed By: bondhugula, nicolasvasilache Differential Revision: https://reviews.llvm.org/D128986
-
Nathan James authored
Currently the diagnostic is printed at the start of the assignment expression, This can be misleading. Having the location for the diagnostic be the location of the assignment operator is much more intuitive. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D132795
-
Shafik Yaghmour authored
In Parser::ParseUsingDeclaration(...) when we call ParseEnumSpecifier(...) it is not calling SetTypeSpecError() on DS when it detects an error. That means that DS is left set to TST_unspecified. When we then pass DS into Sema::ActOnUsingEnumDeclaration(...) we hit an llvm_unreachable(...) since it expects it to be one of three states TST_error, TST_enum or TST_typename. This fixes https://github.com/llvm/llvm-project/issues/57347 Differential Revision: https://reviews.llvm.org/D132695
-
owenca authored
Fixes #57373. Differential Revision: https://reviews.llvm.org/D132719
-
Florian Hahn authored
Add verification that VPHeaderPHIRecipes are only in header VPBBs. Also adds missing checks for VPPointerInductionRecipe to VPHeaderPHIRecipe::classof. Split off from D119661. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D131989
-
Akira Hatanaka authored
This is needed to avoid passing flags that are supported by the compiler but cause warnings to be emitted.
-
Nikolas Klauser authored
Reviewed By: ldionne, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D132320
-
Nathan James authored
-