- Dec 16, 2021
-
-
Adrian Prantl authored
-
Adrian Prantl authored
-
Arthur Eubanks authored
These are deprecated and should be replaced with getAlign(). Some of these asserts don't do anything because Load/Store/AllocaInst never have a 0 align value.
-
Arthur Eubanks authored
getAlignment() is deprecated.
-
Arthur Eubanks authored
It is better typed, and the calls to getAlignment() are deprecated. Differential Revision: https://reviews.llvm.org/D115466
-
Noah Shutty authored
The directory returned from `cache_directory` may not be writable if the unit tests are run with limited permissions (e.g. if $HOME is not writable). This fixes a unit test of the debuginfod client to set the cache path to the system temporary directory to avoid this issue. Reviewed By: estewart08 Differential Revision: https://reviews.llvm.org/D115813
-
Arjun P authored
Previously, the LogicalResult return value of restoreRow was being ignored in places where it was expected to always be success. Instead, check the result and go to an `llvm_unreachable` if it turns out to be failure.
-
Hanhan Wang authored
If all the dims are reduction dims, it is already in inner-most/outer-most reduction form. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D115820
-
Nikolas Klauser authored
Implement P0798R8 Reviewed By: #libc, ldionne, Quuxplusone Spies: tcanens, Quuxplusone, ldionne, Wmbat, arichardson, Mordante, libcxx-commits Differential Revision: https://reviews.llvm.org/D113408
-
Peter Klausler authored
Rather than represent the mixed real/complex subexpression x*(a,b) as (x*a,x*b), use (x,0)*(a,b) to avoid a potential code duplication in current lowering code. Same for mixed division, and for mixed integer*complex and integer/complex cases. Differential Review: https://reviews.llvm.org/D115732
-
Fangrui Song authored
This removes SpecificAlloc<Defined> and makes my lld executable 1.5k smaller. This drops the small memory waste due to the separate BumpPtrAllocator.
-
Fangrui Song authored
-
Sam McCall authored
These all currently pass, but are tricky cases not currently covered. https://reviews.llvm.org/D114251 would break them in its current state.
-
Sam McCall authored
The empty VisitDecl() meant all assertions were skipped. Meanwhile the assertions have rotted as some type printing has changed. The test is still in the wrong directory, because it requires TestVisitor.h which uses Tooling APIs.
-
Fangrui Song authored
and detangle local/global symbol initialization. My x86-64 lld executable is 8k smaller due to the removal of SpecificAlloc<Undefined>.
-
mydeveloperday authored
https://github.com/llvm/llvm-project/issues/52677 clang-format doesn't format C# switch expressions very well. Start with this small use case and try and improve the output. I'll look for other examples to add as tests Reviewed By: curdeius Differential Revision: https://reviews.llvm.org/D115673 Fixes #52677
-
LLVM GN Syncbot authored
-
Yitzhak Mandelbaum authored
Adds a very simple constant-propagation analysis for demo and testing purposes. Differential Revision: https://reviews.llvm.org/D115740
-
Scott Linder authored
Similar versions of these already exist, this effectively just just factors them out into STLExtras. I plan to use these in future patches. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D100672
-
Florian Hahn authored
This patch adds 2 test cases where we fail to determine a tight bound on the backedge taken count because the ULT condition is applied before the signed conditions. The order the conditions are applied impacts which min/max folds are applied.
-
Craig Topper authored
The Zbs instructions uses to start with 'sb' but now start with 'b'. Update test names accordingly.
-
Alexey Bataev authored
-
Felix Berger authored
This fixes a compiler error/warning in https://lab.llvm.org/buildbot/#/builders/36/builds/15377. Differential Revision: https://reviews.llvm.org/D115809 Reviewed-by: sammccall
-
Yuanfang Chen authored
Down the path, if there is a implicit instantiation, this may trigger the assertion "Member specialization must be an explicit specialization" in `clang::FunctionDecl::setFunctionTemplateSpecialization`. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D113245
-
Yuanfang Chen authored
This reverts commit 8cb6ecbc. Nothing wrong with the commit. It is missing Phabricator informations.
-
Yuanfang Chen authored
Down the path, if there is a implicit instantiation, this may trigger the assertion "Member specialization must be an explicit specialization" in `clang::FunctionDecl::setFunctionTemplateSpecialization`.
-
Fangrui Song authored
-
Arnold Schwaighofer authored
When references to the symbol `swift_async_extendedFramePointerFlags` are emitted they have to be weak. References to the symbol `swift_async_extendedFramePointerFlags` get emitted only by frame lowering code. Therefore, the backend needs to track references to the symbol and mark them weak. Differential Revision: https://reviews.llvm.org/D115672
-
Guillaume Chatelet authored
-
Stanislav Mekhanoshin authored
Transform ``` (~a & b & c) | ~(a | b) -> (c | ~b) & ~a ``` and swapped case ``` (~a | b | c) & ~(a & b) -> (c & ~b) | ~a ``` ``` ---------------------------------------- define i4 @src(i4 %a, i4 %b, i4 %c) { %0: %or1 = or i4 %b, %a %not1 = xor i4 %or1, 15 %not2 = xor i4 %a, 15 %and1 = and i4 %b, %not2 %and2 = and i4 %and1, %c %or2 = or i4 %and2, %not1 ret i4 %or2 } => define i4 @tgt(i4 %a, i4 %b, i4 %c) { %0: %notb = xor i4 %b, 15 %or = or i4 %notb, %c %nota = xor i4 %a, 15 %and = and i4 %or, %nota ret i4 %and } Transformation seems to be correct! ``` ``` ---------------------------------------- define i4 @src(i4 %a, i4 %b, i4 %c) { %0: %and1 = and i4 %b, %a %not1 = xor i4 %and1, 15 %not2 = xor i4 %a, 15 %or1 = or i4 %b, %not2 %or2 = or i4 %or1, %c %and2 = and i4 %or2, %not1 ret i4 %and2 } => define i4 @tgt(i4 %a, i4 %b, i4 %c) { %0: %notb = xor i4 %b, 15 %and = and i4 %notb, %c %nota = xor i4 %a, 15 %or = or i4 %and, %nota ret i4 %or } Transformation seems to be correct! ``` Differential Revision: https://reviews.llvm.org/D113037 -
Felix Berger authored
The matcher crashes when a variadic function pointer is invoked because the FunctionProtoType has fewer parameters than arguments. Matching of non-variadic arguments now works. Differential Revision: https://reviews.llvm.org/D114559 Reviewed-by: sammccall
-
Jing Bao authored
This test was authored as part of the same revision, D109481, but I (tlively) accidentally left it out when committing.
-
David Spickett authored
Added in https://reviews.llvm.org/D115320. Failing on our bots that only build Arm/AArch64 targets: https://lab.llvm.org/buildbot/#/builders/188/builds/6951
-
- Dec 15, 2021
-
-
Markus Böck authored
The purpose of this checker is to flag a missing throw keyword, and does so by checking for the construction of an exception class that is then unused. This works great except that placement new expressions are also flagged as those lead to the construction of an object as well, even though they are not temporary (as that is dependent on the storage). This patch fixes the issue by exempting the match if it is within a placement-new. Fixes https://github.com/llvm/llvm-project/issues/51939 Differential Revision: https://reviews.llvm.org/D115576
-
Zaara Syeda authored
If a loop isn't forced to be unrolled, we want to avoid unrolling it when there is an explicit unroll-and-jam pragma. This is to prevent automatic unrolling from interfering with the user requested transformation. Missed adding the testcase in earlier commit. Differential Revision: https://reviews.llvm.org/D114886
-
Jan Svoboda authored
This is a prep-patch for making `CachedFileSystemEntry` initialization more lazy.
-
Carlo Bertolli authored
[OpenMP] Increase opportunity for parallel kernel launch in AMDGPUs: add multiple hsa queue's per device in plugin This patch extends the AMDGPU plugin for OpenMP target offloading from using a single HSA queue to multiple queues (four in this patch) per device. This enables concurrent threads to concurrently submit kernel launches to the same GPU. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D115771
-
Jan Svoboda authored
The code and documentation around `CachedFileSystemEntry` use the following terms: * "invalid stat" for `llvm::ErrorOr<llvm::vfs::Status>` that is *not* an error and contains an unknown status, * "initialized entry" for an entry that contains "invalid stat", * "valid entry" for an entry that contains "invalid stat", synonymous to "initialized" entry. Having an entry be "valid" while it contains an "invalid" status object is counter-intuitive. This patch cleans up the wording by referring to the status as "unknown" and to the entry as either "initialized" or "uninitialized".
-
Joe Nash authored
NFC refactor to extract useful helper function isRegOrInline. Reviewed By: rampitec, dp Differential Revision: https://reviews.llvm.org/D115753 Change-Id: Ief52db9a62615c053fb5f429248657b97cb41453
-