- Jan 13, 2023
-
-
Benjamin Kramer authored
-
Lorenzo Chelini authored
Instead of folding the transpose into the linalg.generic keep the transposition in the packing operation, effectively making the linalg.generic transparent to the propagation. Additionally, if the init operand of the generic has users pack the init and pass it as the operand to the generic. Reviewed By: hanchung Differential Revision: https://reviews.llvm.org/D141483
-
Nikita Popov authored
When constraining an operand based on a condition at a (potentially transitive) use site, make sure we don't skip over non-speculatable instructions. While the result is only used under the condition, the non-speculatable instruction may have a side-effect or UB. Demonstrating this issue requires raising the limit on the walk, so do that.
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Guillaume Chatelet authored
-
Nikita Popov authored
For longer chains, we need to consider non-speculatable instructions.
-
Paul Robinson authored
-
Erich Keane authored
This reverts commit e77e14ec. According to @rsmith on https://reviews.llvm.org/D131858, he believes the reason for this workaround in the firstplace has been fixed. Reverting the workaround to hopefully confirm that is the case.
-
Nikita Popov authored
-
Nikita Popov authored
-
Paul Robinson authored
Fixes #60002.
-
Alexandros Lamprineas authored
Re-enable the optimization after having fixed the compilation error found in SPEC/CINT2017rate/502.gcc_r when both LTO and PGO are in use (see https://reviews.llvm.org/D141474). Differential Revision: https://reviews.llvm.org/D140210
-
Dmitri Gribenko authored
-
Nikita Popov authored
In preparation for switching this to use getConstantRangeAtUse().
-
Takuya Shimizu authored
When using the && operator within a || operator, both Clang and GCC produce a warning for potentially confusing operator precedence. However, Clang avoids this warning for certain patterns, such as a && b || 0 or a || b && 1, where the operator precedence of && and || does not change the result. However, this behavior appears inconsistent when using the const or constexpr qualifiers. For example: bool t = true; bool tt = true || false && t; // Warning: '&&' within '||' const bool t = true; bool tt = true || false && t; // No warning const bool t = false; bool tt = true || false && t; // Warning: '&&' within '||' The second example does not produce a warning because true || false && t matches the a || b && 1 pattern, while the third one does not match any of them. This behavior can lead to the lack of warnings for complicated constexpr expressions. Clang should only suppress this warning when literal values are placed in the place of t in the examples above. This patch adds the literal-or-not check to fix the inconsistent warnings for && within || when using const or constexpr.
-
Guillaume Chatelet authored
-
Paul Walker authored
Prior to this patch we would create floating point extending load and truncating store operations involving fp128 types, which we cannot lower. Fixes #58530 Differential Revision: https://reviews.llvm.org/D140318
-
Freddy Ye authored
Reviewed By: skan Differential Revision: https://reviews.llvm.org/D141677
-
Quentin Colombet authored
This reverts commit 93f40c98. Update the tests to also work on window. The order in which the `arith.constant`s appear in the output IR is slightly different between window and linux. Use CHECK.*-DAG for the constants. Original message: These tests cover muli, xor, and, addf, subf, and addi. The tests themselves are not that interesting, their goal is to provide code coverage for all the types of reductions currently supported. NFC Differential Revision: https://reviews.llvm.org/D141369
-
LiaoChunyu authored
Inspired by gcc's assembly: https://godbolt.org/z/54hbzsGYn, while referring to D130203 Replace AND+IMM{32,64} with a slli. But gcc does not handle 0xffff and 0xffffffff, which also seem to be optimizable. The testcases copies all the bits in D130203 and adds 16, 32, and 64 bits. Differential Revision: https://reviews.llvm.org/D141607
-
Emmmer authored
RVC is the RISC-V standard compressed instruction-set extension, named "C", which reduces static and dynamic code size by adding short 16-bit instruction encodings for common operations, and RVCD is the compressed "D extension". And "D 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. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D140961
-
Peixin Qiao authored
Support allocate statement with source in runtime version. The source expression is evaluated only once for each allocate statement. When the source expression has shape-spec, uses it for bounds. Otherwise, get the bounds from the source expression. Get the length if the source expression has deferred length parameter. Reviewed By: clementval, jeanPerier Differential Revision: https://reviews.llvm.org/D137812
-
Ties Stuij authored
- Position independent thunks now work for both Armv4 and Armv4T - Armv4 arm->arm thunks don't emit a BX anymore, which doesn't exist for the arch. This fixes https://github.com/llvm/llvm-project/issues/50764. - Armv4 and Armv4T both have the same arm->arm behaviour. Which also is desirable for the above ticket. Reviewed By: MaskRay, peter.smith Differential Revision: https://reviews.llvm.org/D141272
-
Jay Foad authored
-
Francesco Petrogalli authored
Summary: As supporting information, I have added an example that describes how the indexes of the vector of resources SchedBoundary::ReservedCycles are tracked by the field SchedBoundary::ReservedCyclesIndex. This has a minor rework of https://github.com/llvm/llvm-project/commit/b39a9a94f420a25a239ae03097c255900cbd660e which was reverted in https://github.com/llvm/llvm-project/commit/df6ae1779fafd9984e144a27315d6dd65b32c325 becasue the llc invocation of the test was missing the argument `-mtriple`. See for example the failure at https://lab.llvm.org/buildbot#builders/231/builds/7245 that reported the following when targeting a non-aarch64 native build: 'cortex-a55' is not a recognized processor for this target (ignoring processor) Reviewers: jroelofs Subscribers: Differential Revision: https://reviews.llvm.org/D141367
-
Joshua Cao authored
There is already support for U/SMax. No reason why Min and SequentialMin should not be supported. NFC: code in GetMinTrailingZeroes is copied for a couple node types. Refactor them into a single code block. Differential Revision: https://reviews.llvm.org/D141568
-
Quentin Colombet authored
This reverts commit 904f2ccc. This breaks a window bot. Reverting while I investigate. https://lab.llvm.org/buildbot/#/builders/13/builds/30748
-
Quentin Colombet authored
Make it clearer what the semantic of reinterpret_cast is. In particular, call out that this instruction is not a no-op. NFC Related to https://github.com/llvm/llvm-project/issues/59896 Differential Revision: https://reviews.llvm.org/D141662
-
Francesco Petrogalli authored
Reverting because of https://lab.llvm.org/buildbot#builders/16/builds/41860 When building on x86, I need to specify also -mtriple in the invocation of llc otherwise the folllowing error shows up: 'cortex-a55' is not a recognized processor for this target (ignoring processor) This reverts commit b39a9a94.
-
Jean Perier authored
Lower all the different kinds of hlfir.designate component refs to FIR. Differential Revision: https://reviews.llvm.org/D141476
-
Nikita Popov authored
Pick up changes in variables names.
-
Dmitri Gribenko authored
[bazel] Updates for https://github.com/llvm/llvm-project/commit/aa0883b59ae17e5465906dad51b5561b5292a28d
-
Matthias Springer authored
When adding an op to the worklist, also add its ancestors to the worklist. This allows for RewritePatterns to match an op `a` based on what is inside of the body of `a`. This change fixes a problem that became apparent with `vector.warp_execute_on_lane_0`, but could probably be triggered with similar patterns. The pattern extracts an op `b` with `eligible = true` from the body of an op `a`: ``` test.a { %0 = test.b() {eligible = true} yield %0 } ``` Afterwards: ``` %0 = test.b() {eligible = true} test.a { yield %0 } ``` The pattern is an `OpRewritePattern<OpA>`. For some reason, `test.a` is not on the GreedyPatternRewriter's worklist. E.g., because no pattern could be applied and it was removed. Now, another pattern updates `test.b`, so that `eligible` is changed from `true` to `false`. The `OpRewritePattern<OpA>` could now be applied, but (without this revision) `test.a` is still not on the worklist. Note: In the above example, an `OpRewritePattern<OpB>` could have been used instead of an `OpRewritePattern<OpA>`. With such a design, we can run into the same problem (when the `eligible` attr is on `test.a` and `test.b` is removed from the worklist because no patterns could be applied). Note: This change uncovered an unrelated bug in TestSCFUtils.cpp that was triggered due to a change in the order in which ops are processed. A TODO is added to the broken code and test cases are adapted so that the bug is no longer triggered. Differential Revision: https://reviews.llvm.org/D140304 -
Ivan Kosarev authored
Reviewed By: dp Differential Revision: https://reviews.llvm.org/D140799
-
Quentin Colombet authored
These tests cover muli, xor, and, addf, subf, and addi. The tests themselves are not that interesting, their goal is to provide code coverage for all the types of reductions currently supported. NFC Differential Revision: https://reviews.llvm.org/D141369
-
Nikita Popov authored
The non-local MemDep analysis has a limit on the number of blocks it will scan trying to find dependencies. The current limit of 1000 is very high, especially when we consider that each block scan can also visit up to 100 instructions. In degenerate cases (where we actually scan that many blocks) MemDep/GVN dominate overall compile-time, for little benefit. This patch reduces the limit to 200, which is probably still too large, but at least mitigates some of the more catastrophic cases. (For comparison, MSSA clobber walks consider up to 100 MemoryDefs/MemoryPhis, rather than 200 blocks * 100 instructions, but these limits aren't directly comparable.) I know that we were kind of hoping that this issue would resolve itself in time, either by a switch to NewGVN or use of MSSA in GVN. But I think we should still address this in the meantime. Additionally, a switch to an MSSA-based implementation will effectively be doing this as well, in a roundabout way (by dint of MSSA having lower cutoffs than MDA). Differential Revision: https://reviews.llvm.org/D140097
-
Francesco Petrogalli authored
As supporting information, I have added an example that describes how the indexes of the vector of resources SchedBoundary::ReservedCycles are tracked by the field SchedBoundary::ReservedCyclesIndex. Reviewed By: jroelofs Differential Revision: https://reviews.llvm.org/D141367
-
Nikita Popov authored
I'm not sure why, but the absence of bitcasts / no-op GEPs causes the branch delay slot to be used. Differential Revision: https://reviews.llvm.org/D141593
-