- Jul 06, 2022
-
-
Nikita Popov authored
This makes it easier to modify the test without having to renumber everything.
-
- Jul 05, 2022
-
-
Stella Stamenova authored
This broke the windows mlir bot: https://lab.llvm.org/buildbot/#/builders/13/builds/22743 This reverts commit daeb2dce and 537db495.
-
Simon Pilgrim authored
We were only using the N1C scalar/splat value once, so for clarity use isAllOnesOrAllOnesSplat instead if we actually need it.
-
Simon Pilgrim authored
[DAG] foldAddSubOfSignBit - don't bother creating the new shift node unless constant folding succeeds Noticed by inspection - the new shift is only ever used if the constant fold occurs
-
Groverkss authored
"attachment" was a temporary name chosen for the information attached to a variable in a PresburgerSpace. After the disambiguation of "variables" and "identifiers" in PresburgerSpace, we use the word "identifiers" for this information, since this information is used to "identify" these variables. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D128751
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D128445
-
Ben Dunbobbin authored
See: https://reviews.llvm.org/D128195
-
Matthias Springer authored
-
Matthias Springer authored
This helper function is no longer needed. Differential Revision: https://reviews.llvm.org/D129145
-
Nikita Popov authored
This reverts commit 4e545bdb. The newly added test is the third infinite combine loop caused by this change. In this case, it's a combination of the branch to common dest and jump threading folds that keeps peeling off loop iterations. The core problem here is that we ideally would not thread over loop backedges, both because it is potentially non-profitable (it may break canonical loop structure) and because it may result in these kinds of loops. Unfortunately, due to the lack of a dominator tree in SimplifyCFG, there is no good way to prevent this. While we have LoopHeaders, this is an optional structure and we don't do a good job of keeping it up to date. It would be fine for a profitability check, but is not suitable for a correctness check. So for now I'm just giving up here, as I don't see a good way to robustly prevent infinite combine loops. Fixes https://github.com/llvm/llvm-project/issues/56203.
-
Matthias Springer authored
The result shape of a rank-reducing subview cannot be inferred in the general case. Just the result rank is not enough. The only thing that we can infer is the layout map. This change also improves the bufferization patterns of tensor.extract_slice and tensor.insert_slice to fully support rank-reducing operations. Differential Revision: https://reviews.llvm.org/D129144
-
Joe Nash authored
Modifies the GCNDPPCombine pass to enable DPP formation for the new DPP instruction in gfx11, namely VOP3 encoded instructions with DPP and VOPC with DPP. Depends on D128656 Reviewed By: #amdgpu, rampitec Differential Revision: https://reviews.llvm.org/D128682
-
Matthias Springer authored
Insert -split-input-file flag to make the test cases more stable. Differential Revision: https://reviews.llvm.org/D129143
-
LLVM GN Syncbot authored
-
Haojian Wu authored
- Extend the GLR parser to allow conditional reduction based on the guard functions; - Implement two simple guards (contextual-override/final) for cxx.bnf; - layering: clangPseudoCXX depends on clangPseudo (as the guard function need to access the TokenStream); Differential Revision: https://reviews.llvm.org/D127448
-
Nikita Popov authored
This removes creation of udiv/sdiv/urem/srem constant expressions, in preparation for their removal. I've added a ConstantExpr::isDesirableBinOp() predicate to determine whether an expression should be created for a certain operator. With this patch, div/rem expressions can still be created through explicit IR/bitcode, forbidding them entirely will be the next step. Differential Revision: https://reviews.llvm.org/D128820
-
Eric Li authored
Treat `std::nullptr_t` as a regular scalar type to avoid tripping assertions when analyzing code that uses `std::nullptr_t`. Differential Revision: https://reviews.llvm.org/D129097
-
Joe Nash authored
We form VOPD instructions in the GCNCreateVOPD pass by combining back-to-back component instructions. There are strict register constraints for creating a legal VOPD, namely that the matching operands (e.g. src0x and src0y, src1x and src1y) must be in different register banks. We add a PostRA scheduler mutation to put possible VOPD components back-to-back. Depends on D128442, D128270 Reviewed By: #amdgpu, rampitec Differential Revision: https://reviews.llvm.org/D128656
-
Haojian Wu authored
-
Vladislav Khmelevsky authored
Wrong mask was used to get branch instruction imm value. Differential Revision: https://reviews.llvm.org/D128740
-
Nikita Popov authored
When trying to prove an implied condition on a phi by proving it for all incoming values, we need to be careful about values coming from a backedge, as these may refer to a previous loop iteration. A variant of this issue was fixed in D101829, but the dominance condition used there isn't quite right: It checks that the value dominates the incoming block, which doesn't exclude backedges (values defined in a loop will usually dominate the loop latch, which is the incoming block of the backedge). Instead, we should be checking for domination of the phi block. Any values defined inside the loop will not dominate the loop header phi. Fixes https://github.com/llvm/llvm-project/issues/56242. Differential Revision: https://reviews.llvm.org/D128640
-
Andi-Bogdan Postelnicu authored
This patch was pushed for calixte@mozilla.com - this function (Windows only) is called when gcda are dumped on disk; - according to its documentation, it's only useful in case of hard failures, this is highly improbable; - it drastically decreases the time in the tests and consequently it avoids timeouts when we use slow disks. Differential Revision: https://reviews.llvm.org/D129128
-
Haojian Wu authored
Differential Revision: https://reviews.llvm.org/D129074
-
Ivan Kosarev authored
Tell the matcher what we are looking for instead of matching everything and then discarding the result if doesn't fit. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D128171
-
Ivan Kosarev authored
Reviewed By: foad Differential Revision: https://reviews.llvm.org/D128836
-
Sam McCall authored
The last remaining uses are in tests/test builders. Replace with a builder struct. Differential Revision: https://reviews.llvm.org/D129093
-
Nikita Popov authored
If there are multiple predecessors that have the same condition value (and thus same "real destination"), these were previously handled by copying the threaded block for each predecessor. Instead, we can reuse one block for all of them. This makes the behavior of SimplifyCFG's jump threading match that of the actual JumpThreading pass. This also avoids the infinite combine loop reported in: https://reviews.llvm.org/D124159#3624387
-
Florian Hahn authored
-
Nikita Popov authored
A case where multiple predecessors can be threaded over the same edge, with a phi node in the threaded block.
-
Tobias Hieta authored
When doing CTU analysis setup you pre-compile .cpp to .ast and then you run clang-extdef-mapping on the .cpp file as well. This is a pretty slow process since we have to recompile the file each time. With this patch you can now run clang-extdef-mapping directly on the .ast file. That saves a lot of time. I tried this on llvm/lib/AsmParser/Parser.cpp and running extdef-mapping on the .cpp file took 5.4s on my machine. While running it on the .ast file it took 2s. This can save a lot of time for the setup phase of CTU analysis. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D128704
-
Thomas Symalla authored
-
Muhammad Omair Javaid authored
-
Groverkss authored
This patch extends the affine parser to allow affine constraints with `<=`. This is useful in writing unittests for Presburger library and test in general. The internal storage and printing of IntegerSet is still in the original format. Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D129046
-
Alexey Bader authored
-
Muhammad Omair Javaid authored
This test has some race condition which is making it hang on LLDB Arm/AArch64 Linux buildbot. I am marking it as skipped until we investigate whats going wrong.
-
Kazushi (Jam) Marukawa authored
Restructure the current implementation of eliminateFrameIndex function in order to support more instructions. Reviewed By: efocht Differential Revision: https://reviews.llvm.org/D129034
-
Jun Zhang authored
Signed-off-by:Jun Zhang <jun@junz.org>
-
serge-sans-paille authored
-
Kazushi (Jam) Marukawa authored
This reverts commit 98e52e8b.
-
Kazushi (Jam) Marukawa authored
Restructure the current implementation of eliminateFrameIndex function in order to support more instructions. Reviewed By: efocht Differential Revision: https://reviews.llvm.org/D129034
-