- Dec 20, 2022
-
-
Florian Hahn authored
-
Joseph Huber authored
Summary: This condition should fire when the full build is set OFF instead of when it is ON.
-
Florian Hahn authored
AAResults is passed to LoopVectorizationLegality but no longer used. Remove the dead code.
-
Benjamin Kramer authored
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Johannes Doerfert authored
This reverts commit d57a3443. This patch was never part of the memory leak problem that lead to the revert, just an innocent bystander caught in the middle... Also, added a second reproducer reported after the revert.
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Benjamin Kramer authored
It doesn't seem necessary and it's blocking std::optional.
-
Utkarsh Saxena authored
Fixes: https://github.com/llvm/llvm-project/issues/45563 ``` template<class T> concept True = true; template <class T> concept C1 = requires (T) { requires True<typename T::value> || True<T>; }; template <class T> constexpr bool foo() requires True<typename T::value> || True<T> { return true; } static_assert(C1<double>); // Previously failed due to SFINAE error static_assert(foo<int>()); // but this works fine. ``` The issue here is the discrepancy between how a [nested requirement is evaluated](https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaTemplateInstantiate.cpp#L2331) Vs how a [non-nested requirement is evaluated](https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaConcept.cpp#L167-L200). This patch makes constraint checking consistent for nested requirement and trailing requires expressions by reusing the same evaluator. Differential Revision: https://reviews.llvm.org/D138914
-
Matt Arsenault authored
All the attribute numbering changes are due to the ocml function being assumed convergent, and the direct call is not. This begins a series of patches to avoid using the thinnest ocml wrappers around llvm intrinsics. These wrapper functions aren't buying anything and add complexity. As we do not propagate fast math flags into the library on linking, and cannot generally safely do so, we're losing information by calling into them. Directly call the builtins so we get the fast math flags set appropriate for the translation unit naturally.
-
Mitch Phillips authored
This reverts commit b26fe2a3. Reason: Broke the ASan build bots. See more info in the original phabricator review: https://reviews.llvm.org/D138986
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Haojian Wu authored
- fixes error: Line: 91 result += contents[pos:m.start(index)] TypeError: can only concatenate str (not "bytes") to str - fixes the "-code-completion-at=%s:%(lineb'-7')" rewritten results Differential Revision: https://reviews.llvm.org/D140300
-
Saleem Abdulrasool authored
This reverts commit 3010f603. This change introduced undefined behaviour (reported at https://reviews.llvm.org/D138508#inline-1352840). Additionally, it appears to be responsible for a mis-compilation on RISCV64 with the vector extension (https://github.com/llvm/llvm-project/issues/59594). The commit message indicates that this is meant to be ARM64 specific though is a generic selection change.
-
Haojian Wu authored
Per the discussion on https://reviews.llvm.org/D140095#inline-1352956 Differential Revision: https://reviews.llvm.org/D140284
-
Paul Kirth authored
In many cases, we can use an alias to avoid a symbolic relocations, instead of using the public, interposable symbol. When the instrumented function is in a COMDAT, we can use a hidden alias, and still avoid references to discarded sections. New compiler-rt tests are Linux only for now. Previous versions of this patch allowed the compiler to name the generated alias, but that would only be valid when the functions were local. Since the alias may be used across TUs we use a more deterministic naming convention, and add a `.local` suffix to the alias name just as we do for relative vtables aliases. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D137982
-
Michal Paszkowski authored
Adds support for memory(...) function attributes in SPIR-V function control info lowering. Differential Revision: https://reviews.llvm.org/D139133
-
Michal Paszkowski authored
This patch disables MachineLateInstrsCleanup pass (since it does not work with virtual registers) and modifies LIT tests to run with -O0. Differential Revision: https://reviews.llvm.org/D140103
-
Simon Pilgrim authored
The set/reset/complement RMW variants use +1uop compared to the BT read-only instructions Based off llvm-exegesis captures, confirmed with Agner + uops.info
-
Siva Chandra Reddy authored
Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D140309
-
Kautuk Consul authored
This patch adds codegen support for part of XVentanaCondOps extension. This extension is designed to reduce the number of branches in the generated RISCV assembly by replacing branches with conditional move instructions as defined by XVentanaCondOps specification. The specification for XVentanaCondOps extension can be found at: https://github.com/ventanamicro/ventana-custom-extensions/releases/download/v1.0.1/ventana-custom-extensions-v1.0.1.pdf Co-authored-by:
Mikhail Gudim <mgudim@ventanamicro.com> Differential Revision: https://reviews.llvm.org/D139394
-
Stephen Tozer authored
Fixes a test in 6d169089 which had unspecified platform dependencies and platform-dependent output.
-
Ramkumar Ramachandra authored
This is part of an effort to migrate from llvm::Optional to std::optional. This patch touches DialectConversion, and modifies existing conversions and tests appropriately. See also: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 Signed-off-by:
Ramkumar Ramachandra <r@artagnon.com> Differential Revision: https://reviews.llvm.org/D140303
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Stephen Tozer authored
This patch adds a new function that can be used to check all the properties, other than the machine values, of a pair of debug values for equivalence. This is done by folding the "directness" into the expression, converting the expression to variadic form if it is not already in that form, and then comparing directly. In a few places which check whether two debug values are identical to see if their ranges can be merged, this function will correctly identify cases where two debug values are expressed differently but have the same meaning, allowing those ranges to be correctly merged. Differential Revision: https://reviews.llvm.org/D136173
-
Matt Arsenault authored
I initially attempted this in 5a95be22. It was reverted in 81cbe0ca since it crashed GCC 5.3. That has dropped out of the list of supported host compilers, so try again.
-
Simon Pilgrim authored
Enables folding fadd x, (select c, (fneg a), (fneg b)) -> fsub (select a, b), c Avoids some regressions in a future AMDGPU change.
-
Matt Arsenault authored
-
Sebastian Neubauer authored
llvm::Any had and has several bugs, so we eventually want to replace it with std::any. Unfortunately, we cannot do that right now because of bugs in the msvc standard library that are only fixed in VS 2022 17.4. When lto is enabled in msvc, constant symbols end up at the same address, breaking the TypeId implementation of llvm::Any. Make the TypeId<T>::Id non-const to fix this. I was able to find an easy reproducer (tried in godbolt with x64 msvc v19.32 and `/GL` as compiler flags to enable lto): ```c++ template <typename T> struct TypeId { // Remove the const here and below to make it work. static const char Id; }; template <typename T> const char TypeId<T>::Id = 0; template <typename A, typename B> bool isSame() { return &TypeId<A>::Id == &TypeId<B>::Id; } class A {}; class B {}; int main() { // This should output "is same 0" because the addresses of A's and B's // TypeId::Id should be different. printf("is same %d\n", isSame<A, B>()); return 0; } ``` Differential Revision: https://reviews.llvm.org/D139974
-
- Dec 19, 2022
-
-
Nikita Popov authored
When converting this test to opaque pointers (and dropping bitcast), we get improved memory checks. Per fhahn: > It looks like the difference is due to the logic that determines > pointer strides in LAA not handling bitcasts. Without the > bitcasts, the logic now triggers successfully. Differential Revision: https://reviews.llvm.org/D140204
-
Caroline.Concatto@arm.com authored
According to: https://developer.arm.com/documentation/ddi0602/2022-09/ PFALSE should: "...an assembler must also accept predicate-as-counter register name for the destination predicate register." Differential Revision: https://reviews.llvm.org/D140301
-
Matt Arsenault authored
-
Yitzhak Mandelbaum authored
Removes an assertion and a useless line. The assertion seems left over from earlier debugging and the line that follows is a stray line. Differential Revision: https://reviews.llvm.org/D140306
-
Matt Arsenault authored
-
Carlos Galvez authored
-
LLVM GN Syncbot authored
-
-
Lucas Prates authored
This adds support for the missing Non-maskable Interrupts (FEAT_NMI) feature from armv8.8-A, which consists of the `ALLINT` pstate register. This is a second iteration of the patch from D131389, building on top of the D139925 changes that enable better support for `msr (immediate)` instructions that take 1-bit immediates. Contributors: * David Candler * Tomas Matheson * Sam Elliott Reviewed By: lenary, tmatheson Differential Revision: https://reviews.llvm.org/D140216
-
Lucas Prates authored
This adds support for the new PM pstate system register introduced by the v9.4-A Exception-based Event Profiling extension (FEAT_EBEP). The new PM pstate register takes a 1-bit immediate and requires different values to be specified for the higher bits of the Crm field. To enable that, this patch creates an explicit separation between the pstate system registers that take 4-bit and 1-bit immediate operands, allowing each entry to specify the value for the 3 high bits of Crm. This also updates other pstate registers to correctly accept 4-bit immediates, matching their decoding specification from the Arm ARM. These include: `PAN`, `UAO`, `DIT` and `SSBS`. More information about this extension and the new register can be found at: * https://developer.arm.com/documentation/ddi0601/2022-09/AArch64-Registers/PM--PMU-Exception-Mask Contributors: * Lucas Prates * Sam Elliott Reviewed By: lenary Differential Revision: https://reviews.llvm.org/D139925
-
Tarun Prabhu authored
The runtime implementation uses the recurrence relations `J(n-1, x) = (2.0 / x) * n * J(n, x) - J(n+1, x)` `Y(n+1, x) = (2.0 / x) * n * Y(n, x) - Y(n-1, x)` (see https://dlmf.nist.gov/10.74.iv and https://dlmf.nist.gov/10.6.E1). Although the standard requires that `N1` and `N2` in `BESSEL_JN(N1, N2, x)` and `BESSEL_YN(N1, N2, x)` be non-negative, this is not checked in the runtime functions. This is in keeping with some other compilers which also return some results when `N1` and/or `N2` are negative. The special case for `x == 0` is handled in different runtime functions for each of `BESSEL_JN` and `BESSEL_YN`. The lowering code checks for this case and inserts the checks and the appropriate runtime calls in FIR. The existing tests for the two intrinsics was modified to keep the style consistent with the additional lowering tests that were added.
-