- Apr 25, 2022
-
-
Nico Weber authored
This reverts D117925 since it's no longer needed after D124336. Differential Revision: https://reviews.llvm.org/D124354
-
Nikita Popov authored
This is a variation on the X + Y u< X fold with an extra constant. Proof: https://alive2.llvm.org/ce/z/VNb8pY
-
Nikita Popov authored
We don't actually need the limitation for C == -1, so update test naming accordingly, and also test a non-uniform vector constant.
-
Max Kazantsev authored
Logic in this pass assumes that all users of loop instructions are either in the same loop or are LCSSA Phis. In fact, there can also be users in unreachable blocks that currently break assertions. Such users don't need to go to the next round of simplifications. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D124368
-
Florian Hahn authored
This patch unifies the wording used for readnone, readonly and writeonly attributes. The definitions now more specifically refer to memory visible outside the function The motivation for the clarification is D123473. Reviewed By: nlopes Differential Revision: https://reviews.llvm.org/D124124
-
LLVM GN Syncbot authored
-
Markus Böck authored
The verifier of llvm.mlir.addressof did not properly account for opaque pointers, that is, the pointer type not having an element type equal to the type of the referenced global or function. This patch fixes that by skipping the test for the element type if the pointer is opaque. Differential Revision: https://reviews.llvm.org/D124333
-
Hui Xie authored
- add zip_view and views::zip for C++23 - added unit tests - implemented section 5.6 (zip) in P2321R2 I used clang-format to format the files but they look nothing like the rest of the code base. Manually indenting each line to match the styles sounds like an impossible task. Is there any clang-format file which can format it reasonable similar to the rest of the code base so that I can manually format the rest lines that look weird? Reviewed By: ldionne, #libc, philnik, var-const Spies: Mordante, philnik, libcxx-commits, mgorny Differential Revision: https://reviews.llvm.org/D122806
-
Nikita Popov authored
-
Max Kazantsev authored
-
Sam McCall authored
When exprs are written unabbreviated: - these were encoded as 5 x vbr6 = 30 bits - now they fit exactly into a one-chunk vbr = 6 bits clangd --check=clangd/AST.cpp reports ~1% reduction in PCH size (42826720->42474460) Differential Revision: https://reviews.llvm.org/D124250
-
Alex Zinenko authored
After https://reviews.llvm.org/D119743 added the `AutomaticAllocationScope` trait to loop-like constructs, the vector transfer full/partial splitting pass started inserting allocations for temporaries within the closest loop rather than the closest function (or other allocation scope such as `async.execute`). While this is correct as long as the lowered code takes care of automatic deallocation at the end of each iteration of the loop, this interferes with downstream optimizations that expect `alloca`s to be at the function level. Step over loops when looking for the closest allocation scope in vector transfer full/partial splitting pass thus restoring the original behavior. Reviewed By: hanchung Differential Revision: https://reviews.llvm.org/D124366
-
Florian Hahn authored
-
Martin Storsjö authored
This was missed as this check only is executed if linking doesn't work without it.
-
Max Kazantsev authored
-
Florian Hahn authored
This is to ensure we produce the same code when switching to SimpleLoopUnswitch.
-
Adrian Kuegel authored
When building with layering_check enabled, there needs to be a dependency for each header include.
-
Jean Perier authored
The lowering code was mistakenly assuming that the second argument in the signature provided by semantics is the DIM argument. This caused calls with a KIND argument but no DIM to be lowered as if the KIND argument was DIM. Differential Revision: https://reviews.llvm.org/D124243
-
Markus Böck authored
This is likely preferable to having it crash if one were to specify an opaque pointer type, and the actual element type is unused either way. Differential Revision: https://reviews.llvm.org/D124334
-
Jun Zhang authored
I think the author renamed the function but forgot to update the comment. Signed-off-by:Jun Zhang <jun@junz.org>
-
Shraiysh Vaishay authored
This patch addresses the comment about unexecuted test in D122371. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D123920
-
Chenbing Zheng authored
This patch add a function foldSelectWithFCmpToFabs, and do more combine for fneg-of-fabs. With 'nsz': fold (X < +/-0.0) ? X : -X or (X <= +/-0.0) ? X : -X to -fabs(x) fold (X > +/-0.0) ? X : -X or (X >= +/-0.0) ? X : -X to -fabs(x) Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D123830
-
Brad Smith authored
Reviewed By: ldionne, emaste, dim Differential Revision: https://reviews.llvm.org/D122628
-
sstwcw authored
There was some duplicate code in determineStarAmpUsage and determinePlusMinusCaretUsage Now a `-` or `+` following `;`, `sizeof`, `co_await`, or `delete` is regarded as a unary operator. Now a `*` or `&` following `case` is also a unary operator. Reviewed By: curdeius, MyDeveloperDay, HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D121754
-
Aaron Puchert authored
It was probably accidentally added there, see the discussion on change D97625. It is certainly without effect, to quote gitattributes(5): When deciding what attributes are assigned to a path, Git consults [...], `.gitattributes` file in the same directory as the path in question, and its parent directories up to the toplevel of the work tree [...] Running `git check-attr -a` on the files in question shows that now the settings are indeed effective whereas before they were not. Lastly, lit ignores the file like any dotfile, see getTestsInDirectory of FileBasedTest in llvm/utils/lit/lit/formats/base.py. This can be verified with `llvm-lit --show-tests clang-tools-extra/test`. -
Valentin Clement (バレンタイン クレメン) authored
In some case the lowering of `ichar` is generating an `arith.extui` operation with the same from/to type. This operation do not accept from/to types to be the same. If the from/to types are identical, we do not generate the extra operation. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D124107
-
- Apr 24, 2022
-
-
Jonas Toth authored
`find_compilation_database` checked only for "/" as exit point, but on Windows, this root is impossible. Fixes #53642 Authored By: Febbe Reviewed By: JonasToth Differential Revision: https://reviews.llvm.org/D119481
-
Matt Arsenault authored
Removing these is extremely unhelpful and just adds extra hassle. This is really finding out whether your test script uses -mtriple or not. You can't meaningfully delete these fields, and the resulting module defaults to the host.
-
Petr Hosek authored
Avoid repeating CMake checks across runtimes by unifying names of variables used for results to leverage CMake caching. Differential Revision: https://reviews.llvm.org/D110005
-
Chenbing Zheng authored
Add more tests with differert predicates.
-
Vince Bridgers authored
This change adds an option to detect all null dereferences for non-default address spaces, except for address spaces 256, 257 and 258. Those address spaces are special since null dereferences are not errors. All address spaces can be considered (except for 256, 257, and 258) by using -analyzer-config core.NullDereference:DetectAllNullDereferences=true. This option is false by default, retaining the original behavior. A LIT test was enhanced to cover this case, and the rst documentation was updated to describe this behavior. Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D122841 -
wangpc authored
To fix llvm-mca's error of 'found an unsupported instruction in the input assembly sequence.' caused by the lack of scheduling info. Pseudo function call instructions will be expanded to `auipc` and `jalr`, so their scheduling info are the combination of two. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D123578
-
Senran Zhang authored
Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D124339
-
Vaivaswatha Nagaraj authored
This patch extends https://reviews.llvm.org/D90831 with a few more functions added to the OCaml debuginfo bindings. Differential Revision: https://reviews.llvm.org/D123914
-
Nico Weber authored
Before this, clang empty.cc -target x86_64-apple-ios13.1-macabi \ -framework CoreServices -fuse-ld=lld would error out with ld64.lld: error: path/to/MacOSX.sdk/System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/ Versions/A/CarbonCore.tbd( /System/Library/Frameworks/ CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/ Versions/A/CarbonCore) is incompatible with x86_64 (macCatalyst) Now it works, like with ld64. Differential Revision: https://reviews.llvm.org/D124336 -
Jun Ma authored
This patch set LastCallToStaticBonus based on check, it has no noticeable size reduction on an internal workload and linux kernel with Os/Oz. Differential Revision: https://reviews.llvm.org/D124233
-
Nick Kreeger authored
Revert "[mlir][sparse] Expose SpareTensor passes as enums instead of opaque numbers for vectorization and parallelization options." This reverts commit d59cf901. Build fails on NVIDIA Sparse tests: https://lab.llvm.org/buildbot/#/builders/61/builds/25447
-
Nick Kreeger authored
Revert "Revert "Revert "Revert "[Concepts] Fix overload resolution bug with constrained candidates"""" This reverts commit cfc2c590.
-
Nick Kreeger authored
Revert "Revert "Revert "[Concepts] Fix overload resolution bug with constrained candidates""" This reverts commit a0636b58.
-
Nick Kreeger authored
Revert "Revert "[Concepts] Fix overload resolution bug with constrained candidates"" This reverts commit f6af446b.
-