- Dec 16, 2022
-
-
Roman Lebedev authored
Based on post-commit feedback for the original change.
-
Roman Lebedev authored
-
Roman Lebedev authored
-
-
Christudasan Devadasan authored
Changing cast_lds_gv into a kernel function to lower the LDS usage appropriately. The LDS lowering is currently won't happen for orphan device functions.
-
Peter Rong authored
Currently, APInt::getSExtValue and getZExtValue crashes on values with more than 64 bits. Users may accidently crash the compiler with this setting when the integer may be i128. As shown in https://github.com/llvm/llvm-project/issues/59316 In this patch we provide a trySExtValue and tryZExtValue to return an Optional, the user needs to explictly unwrap it and condsier the possibility where there my no value in it. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D139683
-
Vasileios Porpodas authored
I think this is a better name because it is what STL uses. Differential Revision: https://reviews.llvm.org/D140068
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Alex Brachet authored
This catches missing corner cases from atol tests. Differential Revision: https://reviews.llvm.org/D140076
-
Kazu Hirata authored
I've removed the last uses of transform on Dec 14, 2022 in commit 230df792. Differential Revision: https://reviews.llvm.org/D140082
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Kazu Hirata authored
This patch fixes: lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp:1402:18: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
-
Sanjay Patel authored
https://alive2.llvm.org/ce/z/9EjDKE This was mentioned as a missing fold in D139598. It can unlock follow-on folds in some cases. This verifies one of the changed tests: https://alive2.llvm.org/ce/z/B_btDM
-
Matthias Springer authored
Print statistics about the number of alloc/deallocs and in-place/out-of-place bufferization. Differential Revision: https://reviews.llvm.org/D139538
-
Emmmer authored
RVD extension is a double-precision floating-point instruction-set extension, which adds double-precision floating-point computational instructions compliant with the IEEE 754-2008 arithmetic standard. This patch: - Reuse most of the functions in the "F extension" to impl the"D extension" - corresponding unittests. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D140032
-
Ron Lieberman authored
Breaks amdgpu buildbot https://lab.llvm.org/buildbot/#/builders/193 23491 This reverts commit ffedf47d.
-
Matthias Springer authored
Folding of rank-reduced subviews is also supported. Differential Revision: https://reviews.llvm.org/D140110
-
Matthias Springer authored
The assert message was previously ignored. The lowered IR now calls `puts` it in case of a failed assertion. Differential Revision: https://reviews.llvm.org/D138647
-
Simon Pilgrim authored
See if we can freely sign-extend both sources of a vselect operand, also handle allones constant build vectors (easily rematerializable and uses in the test case). Fixes #59526
-
Nikita Popov authored
-
Philip Reames authored
I went to extend this locally, and then promptly tripped across a bug which is possible with the landed patch. The problematic case is: vsetvli zero, 4, <some vtype> vmv.x.s x1, v0 vsetvli a0, zero, <same type> In this case, the naive rewrite - what I had implemented - would form: vsetvli zero, zero, <same vtype> vmv.x.s x1, v0 This is, amusingly, correct for the vmv.x.s, but is incorrect for the instructions which follow the sequence and probably rely on VL=VLMAX. (The VL before the sequence is unknown, and thus doesn't have to be VLMAX.) I plan to rework the rewrite code to be more robust here, but I wanted to directly fix the bug first. Sorry for the lack of test; I didn't manage to reproduce this without an additional optimization change after a few minutes of trying.
-
Kai Nacke authored
Newer tests use ppc64le-linux triple. It is identical to ppc32. Some of the PPC GIsel tests were generated by this change. Reviewed by: RKSimon Differential Revision: https://reviews.llvm.org/D140107
-
Simon Pilgrim authored
-
Nikita Popov authored
Fix compiler warning.
-
- Dec 15, 2022
-
-
Qiongsi Wu authored
The ClangBuiltLinux project relies on `-mcpu=405`. Before https://reviews.llvm.org/D139720, `clang` treated `-mcpu=405` implicitly in the same way as `-mcpu=generic`, because `405` was an unknown value and `clang` did not validate unknown input values. https://reviews.llvm.org/D139720 added the validation of `-mcpu` input value, and `clang` now generates an error with `-mcpu=405`. For further details of the problem, see https://github.com/ClangBuiltLinux/linux/issues/1771. This patch adds support of `-mcpu=405` explicitly, and treats it as an equivalent of `-mcpu=generic`. Reviewed By: nemanjai Differential Revision: https://reviews.llvm.org/D140080
-
Roman Lebedev authored
Manual checklines are generally not welcomed in LLVM tests. They are really brittle, and really hard to update. *Please* use scripts!
-
Simon Pilgrim authored
Just perform each cast<Instruction> once - we can make OtherAccess a Instruction* type as we only ever assign it from a known LoadInst/StoreInst
-
Yitzhak Mandelbaum authored
The underlying model already supports ignoring accesses to optionals through smart pointers. This patch exposes that option through ClangTidy's configuration options. Differential Revision: https://reviews.llvm.org/D140021
-
Nikita Popov authored
-
Yitzhak Mandelbaum authored
The optional model has an option to ignore optionals accessed through smart pointer types (other than optional itself). This patch improves this feature in two ways: 1. We extend support to optionals accessed directly through the smart pointer, like `ptr->value()`. Previously, support was limited to cases that went through an intermediate field. 2. We clean up the implementation by removing the option from the analysis, leaving it only in the diagnostic phase (where it is relevant). 3. Adjusts a test which was misleading in what it was testing. Differential Revision: https://reviews.llvm.org/D140020
-
Guillaume Chatelet authored
There is no point in testing this behavior since this is std::optional's semantic.
-
Philip Reames authored
This extends the backwards walk to allow mutating the previous vsetvl's AVL value if it was not used by any instructions in between. In practice, this mostly benefits vmv.x.s and fvmv.f.s patterns since vector instructions which ignore VL are rare. Differential Revision: https://reviews.llvm.org/D140048
-
Nilanjana Basu authored
[AArch64] Patch for lowering trunc instructions to 'tbl' for (8|16)xi32 -> (8|16)xi8 conversions in https://reviews.llvm.org/D133495 is extended to support trunc to tbl lowering for (8|16) x i64 to (8|16) x i8. A microbenchmark for runtime for these transformations is added in https://reviews.llvm.org/D136274 Reviewed by: fhahn, t.p.northover Differential Revision: https://reviews.llvm.org/D135229
-
Nilanjana Basu authored
These tests show code generation for vectorized trunc lowering from i16 to i8 in AArch64. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D137293
-
Krzysztof Parzyszek authored
-
Andrew Savonichev authored
Alignment of an alloca in IR can be lower than the preferred alignment on purpose, but this override essentially treats the preferred alignment as the minimum alignment. The patch changes this behavior to always use the specified alignment. If alignment is not set explicitly in LLVM IR, it is set to DL.getPrefTypeAlign(Ty) in computeAllocaDefaultAlign. Tests are changed as well: explicit alignment is increased to match the preferred alignment if it changes output, or omitted when it is hard to determine the right value (e.g. for pointers, some structs, or weird types). Differential Revision: https://reviews.llvm.org/D135462
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D140098
-
Vladislav Dzhidzhoev authored
This reverts commit 731abdfd. This commit breaks some tests in libcxx, e.g. `std/utilities/expected/expected.expected/ctor/ctor.inplace.pass.cpp`
-
Sam McCall authored
When the initializer of an `auto` variable is dependent, clang doesn't give the DeclRefExpr a useful dependent type that we can apply heuristics to. However we can dig one up by looking at the initializer. Differential Revision: https://reviews.llvm.org/D140044
-