- Dec 23, 2022
-
-
Mikhail Goncharov authored
for https://reviews.llvm.org/D140224
-
Nico Weber authored
-
ibricchi authored
Move the plugin used in the unittest to test Inline Advisor Plugins into a separate folder to clean up the cmake file for the analysis tests. Differential Revision: https://reviews.llvm.org/D140559
-
Roman Lebedev authored
The original code was confusing. It was stripping poison-generating flags, but the comments were saying that doing so was a TODO. If the poison-generating flags are present, then even if all operands are guaranteed not to be undef or poison, the whole operation may still produce undef or poison. We can still deal with that case, and we already do deal with it in fact, by also dropping those flags. Refs. https://github.com/llvm/llvm-project/issues/59676
-
Roman Lebedev authored
Lack of such operands implies that the op might be poison-producing due to it's flags. We seem to drop them already, but the comments are confusing. Fixes https://github.com/llvm/llvm-project/issues/59676
-
Ilya Andreev authored
Two comparison operations and a logical operation are combined into selection using MIN or MAX and comparison operation. For optimization to be applied conditions have to be satisfied: 1. In comparison operations has to be the one common operand. 2. Supports only signed and unsigned integers. 3. Comparison has to be the same with respect to common operand. 4. There are no more users of comparison except logic operation. 5. Every combination of comparison and AND, OR are supported. It will convert %l0 = %a < %c %l1 = %b < %c %res = %l0 or %l1 into %sel = min(%a, %b) %res = %sel < %c It supports several comparison operations (<, <=, >, >=), signed, unsigned values and different order of operands if they do not violate conditions. Differential Revision: https://reviews.llvm.org/D134277
-
Ilya Andreev authored
Two comparison operations and a logical operation are combined into selection using MIN or MAX and comparison operation. For optimization to be applied conditions have to be satisfied: 1. In comparison operations has to be the one common operand. 2. Supports only signed or unsigned integers. 3. Comparison has to be the same with respect to common operand. 4. There are no more users of comparison except logic operation. 5. Every combination of comparison and AND, OR are supported. It will convert %l0 = %a < %c %l1 = %b < %c %res = %l0 or %l1 into %sel = min(%a, %b) %res = %sel < %c It supports several comparison operations (<, <=, >, >=), signed, unsigned values and different order of operands if they do not violate conditions.
-
Nico Weber authored
-
Dmitri Gribenko authored
Reviewed By: merrymeerkat Differential Revision: https://reviews.llvm.org/D140625
-
Luke Drummond authored
After 68f2218e, NVPTXTargetObjectFile::Initialize is an empty wrapper of the parent method. Get rid of it. Differential Revision: https://reviews.llvm.org/D140397
-
Aliia Khasanova authored
Differential Revision: https://reviews.llvm.org/D140622
-
Dmitri Gribenko authored
Reviewed By: merrymeerkat Differential Revision: https://reviews.llvm.org/D140620
-
Florian Hahn authored
This sets the stage for D133017 by moving out the code that performs VPlan based simplifications to a separate transform that takes the chosen VF & UF as arguments. The main advantage is that this transform runs before any changes to the CFG are being made. This allows using SCEV without worrying about making queries while the IR is in an incomplete state. Note that this patch switches the reasoning to use SCEV, but still only simplifies loops with constant trip counts. Using SCEV here is needed to access the backedge taken count, because the trip count IR value has not been created yet. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D135017
-
serge-sans-paille authored
Revert "[clang] Use a StringRef instead of a raw char pointer to store builtin and call information" There are still remaining issues with GCC 12, see for instance https://lab.llvm.org/buildbot/#/builders/93/builds/12669 This reverts commit 5ce4e922.
-
Luke Drummond authored
A confusing comment after the last return statement in `NVPTXAsmPrinter::doFinalization` referred to a preprocessor macro (NVISA) that has never existed since the NVPTX backend has been a part of upstream llvm - as far as the pickaxe will tell me anyway. Thus I've removed it. Differential Revision: https://reviews.llvm.org/D140399
-
Matthias Springer authored
The greedy pattern rewriter consists of two nested loops. `config.maxIterations` (which configurable on the CanonicalizerPass) controls the maximum number of iterations of the outer loop. ``` /// This specifies the maximum number of times the rewriter will iterate /// between applying patterns and simplifying regions. Use `kNoLimit` to /// disable this iteration limit. int64_t maxIterations = 10; ``` This change adds `config.maxNumRewrites` which controls the maximum number of pattern rewrites within an iteration. (It effectively control the maximum number of iterations of the inner loop.) This flag is meant for debugging and useful in cases where one or multiple faulty patterns can be applied indefinitely, resulting in an infinite loop. Differential Revision: https://reviews.llvm.org/D140525
-
Nikita Popov authored
There is a minor codegen regression here (an extra and instruction). The reason is that CGP only eliminates fallthrough branches if it has made some other kind of change, and with opaque pointers that other change does not occur. Ideally, we should probably always try to eliminate fallthroughs, but this runs into the problem that performing a dummy fallthrough is a common pattern in tests for forcing SDAG to select them separately, so it's not quite that simple.
-
serge-sans-paille authored
This avoids recomputing string length that is already known at compile time. It has a slight impact on preprocessing / compile time, see https://llvm-compile-time-tracker.com/compare.php?from=3f36d2d579d8b0e8824d9dd99bfa79f456858f88&to=e49640c507ddc6615b5e503144301c8e41f8f434&stat=instructions:u This is a recommit of 719d98df with a change to llvm/utils/TableGen/OptParserEmitter.cpp to cope with GCC bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108158 Differential Revision: https://reviews.llvm.org/D139881
-
Florian Hahn authored
Add assertion to ensure the executed plan is valid for the selected VF and UF.
-
Haojian Wu authored
This crash is a combination of recovery-expr + new SemaInit.cpp code introduced by by https://reviews.llvm.org/D129531. Differential Revision: https://reviews.llvm.org/D140587
-
Dani Ferreira Franco Moura authored
Reviewed By: gribozavr2, merrymeerkat Differential Revision: https://reviews.llvm.org/D140483
-
Nikita Popov authored
-
serge-sans-paille authored
Revert "[clang] Use a StringRef instead of a raw char pointer to store builtin and call information" Failing builds: https://lab.llvm.org/buildbot#builders/9/builds/19030 This is GCC specific and has been reported upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108158 This reverts commit 719d98df.
-
serge-sans-paille authored
This avoids recomputing string length that is already known at compile time. It has a slight impact on preprocessing / compile time, see https://llvm-compile-time-tracker.com/compare.php?from=3f36d2d579d8b0e8824d9dd99bfa79f456858f88&to=e49640c507ddc6615b5e503144301c8e41f8f434&stat=instructions:u Differential Revision: https://reviews.llvm.org/D139881
-
Lang Hames authored
HowToUseJIT describes the older APIs. We want to discourage their use in new projects.
-
Nikita Popov authored
As there have been a couple of questions about this recently, this gives a hard timeline on typed pointers support. Given that we are about a month away from LLVM 16 branching, I think we should retain best-effort typed pointer support in LLVM 16 even if we get all tests migrated before that point. Conversely, regardless of what the actual test migration state will be at that point, I believe we should un-support typed pointers as a matter of policy immediately after branching. Once release/16.x has been branched, typed pointers on main will no longer be supported (and can be actively broken). We only need to keep not-yet-migrated tests working, if there are any left at that point. Differential Revision: https://reviews.llvm.org/D140487
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
-
Nikita Popov authored
These were converted without adjustments.
-
Carlos Galvez authored
Since now the same matcher exists in ASTMatchers.
-
Nikita Popov authored
update_test_checks was rerun for some of those, because we use a different GEP representation with opaque pointers.
-
Nikita Popov authored
-
liqinweng authored
We shouldn't be checking things that are guaranteed by the op's verifier. Reviewed By: benshi001 Differential Revision: https://reviews.llvm.org/D140610
-
Craig Topper authored
Reduces the number of temporary APInts that get created and copy/moved from.
-
Carlos Galvez authored
Used in a couple clang-tidy checks so it could be extracted out as its own matcher. Differential Revision: https://reviews.llvm.org/D140328
-
Freddy Ye authored
Reviewed By: pengfei, skan Differential Revision: https://reviews.llvm.org/D140531
-
Siva Chandra Reddy authored
-