- Dec 12, 2022
-
-
Roman Lebedev authored
[SimplifyCFG] `FoldBranchToCommonDest()`: deal with mismatched IV's in PHI's in common successor block This tries to approach the problem noted by @arsenm: terrible codegen for `__builtin_fpclassify()`: https://godbolt.org/z/388zqdE37 Just because the PHI in the common successor happens to have different incoming values for these two blocks, doesn't mean we have to give up. It's quite easy to deal with this, we just need to produce a select: https://alive2.llvm.org/ce/z/000srb Now, the cost model for this transform is rather overly strict, so this will basically never fire. We tally all (over all preds) the selects needed to the NumBonusInsts Differential Revision: https://reviews.llvm.org/D139275
-
Christian Kandeler authored
Also add new modifier for differentiating between built-in and user- provided operators. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D136594
-
Nikita Popov authored
-
Guillaume Chatelet authored
This breaks lldb. This reverts commit f3f15ca2.
-
Haojian Wu authored
-
Sylvain Audi authored
Those 2 pragmas are ignored by MSVC when not compiling with /CLR, which clang doesn't support. Ignore them in clang -fms-extensions, to avoid -Wunknown-pragma warnings Differential Revision: https://reviews.llvm.org/D139632
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D139836
-
Carlos Galvez authored
-
Zain Jaffal authored
This is a recommit of f9e03907 The previous commit failed to handle cases where the zero extended operand is an extended `BUILD_VECTOR`. We don't replace zext with a sext operand to select smull if any operand is `BUILD_VECTOR` Original commit message: we can safely replace a `zext` instruction with `sext` if the top bit is zero. This is useful because we can select `smull` when both operands are sign extended. Reviewed By: fhahn, dmgreen Differential Revision: https://reviews.llvm.org/D134711
-
Zain Jaffal authored
This reverts commit c07a01c2.
-
Guillaume Chatelet authored
-
David Green authored
-
Nikita Popov authored
-
Haojian Wu authored
-
Guillaume Chatelet authored
-
Felipe de Azevedo Piovezan authored
This utility will be useful in subsequent patches, as such we expose it in the DebugInfoMetadata header. Depends on D139669 Differential Revision: https://reviews.llvm.org/D139670
-
Guillaume Chatelet authored
This one goes hand in hand with D139819 Reviewed By: courbet Differential Revision: https://reviews.llvm.org/D139826
-
Carlos Galvez authored
No need for the templated function "processMatch", since we can infer the type with llvm:isa.
-
Haojian Wu authored
This information is useful when printing the reference for debugging purposes. Differential Revision: https://reviews.llvm.org/D139835
-
Nikita Popov authored
-
Nikita Popov authored
This reverts commit bb48aa20. Using placeholders inside CHECK-LABEL is not legal.
-
Tom Eccles authored
The fastmath test checks that crtfastmath.o is added between crtbeginS.o and crtendS.o. On some systems, crtend is called crtend.o - match these too. Related to https://reviews.llvm.org/D138675
-
Matthias Springer authored
The structure of the code has changed a while ago and the code was not updated properly. There is no test case for this because we do currently not have an op that could trigger this bug. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D139838
-
Matthias Springer authored
The op is not bufferizable but should be analyzable (for `EliminateEmptyTensors`, which uses the bufferization infrastructure). Also improve debugging functionality and error messages. Also adds a missing pass to the sparse pipeline. (tensor.empty should be replaced with bufferization.alloc_tensor, but it sometimes used to work without depending on how the tensor.empty is used. Now we always fail explicitly.)
-
Guillaume Chatelet authored
This patch supersedes D138705. Differential Revision: https://reviews.llvm.org/D139819
-
Valentin Clement authored
pointer association to a polymorphic pointer needs to potentially update the element size in the descriptor. Update the pointer association to polymoprhic pointer with a runtime call to PointerAssociate. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D139825
-
Chen Zheng authored
-
Chen Zheng authored
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D135535
-
Alex Zinenko authored
Now we have more convenient functions to construct silenceable errors while emitting diagnostics, and the constructor is ambiguous as it doesn't tell whether the logical error is silencebale or definite. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D137257
-
Haojian Wu authored
-
Chen Zheng authored
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D134792
-
Max Kazantsev authored
Due to changes in update script, it now has 'define' prefix in every check, which is distracting.
-
Haojian Wu authored
gmock-more-matchers.h is a private header, we should use gmock.h which is already included in the test.
-
Simon Pilgrim authored
There might not be any exposed alu pipe counters for us to measure - but the sum of load/store uop counters seems to give a really good approximation to memory controller usage - even for more complex instructions like cmpxchg
-
Max Kazantsev authored
Just to make sure our transforms work correctly with them.
-
Tom Eccles authored
These warnings prevent compilation using clang and -DLLVM_ENABLE_WERROR=On. Differential revision: https://reviews.llvm.org/D139322
-
Nicholas Guy authored
The tests in question are not particularly useful for testing complex deinterleaving, especially due to i64 complex adds not being supported in mve. The tests are being removed as they are hitting an unrelated pre-existing condition regarding register spilling.
-
Nicholas Guy authored
Differential Revision: https://reviews.llvm.org/D139628
-
Peter Waller authored
The prior code worked before SVE DIV was enabled 128 bit vectors. With 128 bit vectors, when run on a 256 bit machine, it would split and do a signed unpack, but this resulted in one full vector and one empty vector with a half-sized predicate. The effect was that only half the elements were treated correctly. The fix is to bisect the vector, sign extend, do the division, truncate and then concat. Fixes #59357. Differential Revision: https://reviews.llvm.org/D139618
-
Sebastian Neubauer authored
Previously, the label also matched function calls with the function name, which caused tests to fail because the label matched on the wrong line. Add the `define` prefix, so only function defines are matched. Differential Revision: https://reviews.llvm.org/D139006
-