- Feb 15, 2023
-
-
Matt Arsenault authored
This is a test for attribute propagation, not metadata
-
Simi Pallipurath authored
Change: - Replacing the memcpy that assume little endian with the endian-aware write. Shouldn't affect the output for now, just a prerequisite for the next patches. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D140201
-
Caroline Concatto authored
Update feature flag names from: AEK_SMEF64 to AEK_SMEF64F64 and AEK_SMEI64 to AEK_SMEI16I64 These feature flags had their name changed in this previous patch https://reviews.llvm.org/D135974 Reviewed By: c-rhodes Differential Revision: https://reviews.llvm.org/D143989
-
Max Kazantsev authored
When loop condition isn't immediately in the form supported by invariant injection unswitching, try to canonicalize it to this form. Differential Revision: https://reviews.llvm.org/D143175 Reviewed By: skatkov
-
Max Kazantsev authored
Name 'len' implicitly hints that it should be non-negative, but in fact in some of these tests the baseline profitable scenario for the transform to be profitable is when this thing is negative. Rename to avoid this confusion.
-
Alvin Wong authored
On i386 Windows, after C++ names have been Itanium-mangled, the C name mangling specific to its call convention may also be applied on top. This change teaches symbolizer to be able to demangle this type of mangled names. As part of this change, `demanglePE32ExternCFunc` has also been modified to fix unwanted stripping for vectorcall names when the demangled name is supposed to contain a leading `_`. Notice that the vectorcall mangling does not add either an `_` or `@` prefix. The old code always tries to strip the prefix first, which for Itanium mangled names in vectorcall, the leading underscore of the Itanium name gets stripped instead and breaks the Itanium demangler. Differential Revision: https://reviews.llvm.org/D144049
-
Nikita Popov authored
-
Nigel Perks authored
Differential Revision: https://reviews.llvm.org/D144085
-
Max Kazantsev authored
When branch is so hot that sum of its frequencies overflows, we have an assertion failure when trying to construct BranchProbability. Such cases are not interesting as candidate for unswitching anyways (their branches are too hot), so reject them.
-
Carlos Galvez authored
Most of the options stated there are duplicated already in the implementation of each check as a default value for each option. The only place where this is not the case is the nullptr check. Move the default option there instead. Only the HICPP guidelines alias this modernize check, and there is nothing in the documentation that suggests it should have a different default value than the main modernize check. Differential Revision: https://reviews.llvm.org/D143843
-
Samuel Parker authored
Recommit bbdf2435. Original commit message: If a chain of two selects share a true/false value and are controlled by two setcc nodes, that are never both true, we can fold away one of the selects. So, the following: (select (setcc X, const0, eq), Y, (select (setcc X, const1, eq), Z, Y)) Can be combined to: select (setcc X, const1, eq) Z, Y Differential Revision: https://reviews.llvm.org/D142535
-
Guillaume Chatelet authored
Rename preprocessor definitions that control tuning of llvm libc. Differential Revision: https://reviews.llvm.org/D143913
-
Matt Devereau authored
-
Stefan Gränitz authored
These values are moved into the base class constructors, so the `const` doesn't make any sense. Turns out, I accidentally introduced it myself with 2ed91da0 and since than it spread by copy/paste.
-
Stefan Gränitz authored
-
Benjamin Kramer authored
-
Matt Arsenault authored
This reverts commit df78976d. I pushed the wrong patch
-
Valentin Clement authored
This patch updates the code added in D143888 to avoid overwriting some part of the types when updating it for unlimited polymorphic types. Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D143995
-
Matt Arsenault authored
Ignore the multiple use heuristics of the default implementation, and report cost based on inline immediates. This is mostly interesting for -0 vs. 0. Gets a few small improvements. fneg_fadd_0_f16 is a small regression. We could probably avoid this if we handled folding fneg into div_fixup.
-
Matt Arsenault authored
-
Matt Arsenault authored
This requires the denormal mode to definitively be IEEE handling.
-
Matthias Springer authored
`restrict` is similar to the C++ restrict keyword. Results of `to_tensor` that have the `restrict` attribute are guaranteed to not alias any other `to_tensor` result (after bufferization). Note: Since `to_memref` ops are not supported by One-Shot Bufferize and all bufferizable ops follow DPS rules (i.e., the buffer of the result is the buffer of an operand or an alias thereof), the buffer of a `to_tensor` op that has the `restrict` attribute is always an entirely "new" buffer that is not aliasing with the future buffer of any tensor value in the entire program. This makes such `to_tensor` ops "safe" from a bufferization perspective; they cannot cause RaW conflicts. Differential Revision: https://reviews.llvm.org/D144021
-
Sander de Smalen authored
Some places in the code have checks for isa<ScalableVectorType> and use that to bail out of the code. It's also possible to look directly at the allocated type-size and check if the size is scalable. This means it's possible to also support other scalable types that are not vectors (i.e. TargetExtType). This is split out from D136861.
-
Meghan Denny authored
Fixes https://github.com/llvm/llvm-project/issues/56496. As mentioned in the issue, new functions LLVMArrayType2 and LLVMGetArrayLength2 are created so as to not break the old API. The old methods are then marked as deprecated and callers are updated. Differential Revision: https://reviews.llvm.org/D143700
-
Andrzej Warzynski authored
This patch simply adds `vectorize_nd_extract` (that's currently only used for the `vectorize` Op) to `masked_vectorize`. A test is added to verify that it works as expected - it prevents the masked vectorisation of `tensor.extract`, which is currently not supported. Differential Revision: https://reviews.llvm.org/D142634
-
Max Kazantsev authored
Currently we use 'tmp', which is also a keyword for FileCheck. It leads to this annoying warning whenever a script for auto-generation of checks is used. It is especially annoying that it happens to every test affected by metarenamer. Just use another prefix for metarenamed names to avoid this. Differential Revision: https://reviews.llvm.org/D144001 Reviewed By: nikic
-
Balázs Kéri authored
Warnings and notes of checker alpha.unix.StdLibraryFunctionArgs are improved. Previously one warning and one note was emitted for every finding, now one warning is emitted only that contains a detailed description of the found issue. Reviewed By: Szelethus Differential Revision: https://reviews.llvm.org/D143194
-
Fangrui Song authored
Following recent changes to remove non-core legacy passes.
-
Lorenzo Chelini authored
Introduce a pattern to 'push down' a `tensor.unpack` through a `tensor.pad`. The propagation happens if the unpack does not touch the padded dimensions. Reviewed By: hanchung Differential Revision: https://reviews.llvm.org/D143907
-
Craig Topper authored
If we have both an nsw and nuw flag, we would see the nsw flag first and only handle signed comparisons. This patch ignores the nsw flag if the comparison isn't signed. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D143766
-
Adrian Kuegel authored
-
Ingo Müller authored
When changing IR in a RewriterPattern, all changes must go through the rewriter. There are several convenience functions in RewriterBase that help with high-level modifications, such as replaceAllUsesWith for Values, but there is currently none to do the same task for Blocks. Reviewed By: mehdi_amini, ingomueller-net Differential Revision: https://reviews.llvm.org/D142525
-
Mehdi Amini authored
This may be seen as a hack, but it allows for any piece of MLIR to be able to end up with DWARF debug info through LLVM. Assuming the operations in the function have location such as FileLineCol, this provides backtraces with line tables and allows to step in a debugger. That makes this pass a perfect companion to -snapshot-op-locations It was also the default behavior of MLIR to LLVM IR translation until MLIR got support for proper debug info attributes. Differential Revision: https://reviews.llvm.org/D144069
-
Adrian Kuegel authored
-
Diego Caballero authored
Support for masking static shapes was already implemented in the past but not enabled so this patch is just removing a pre-condition check and adding some tests with static shapes. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D143937
-
Diego Caballero authored
This patch adds support for masked vector.gather ops using the vector.mask representation. It includes the implementation of the MaskableOpInterface, Linalg vectorizer support and lowering to LLVM. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D143939
-
Diego Caballero authored
This patch adds support for masking vector.contract ops with the vector.mask approach. This also includes the lowering of vector.contract through the vector.outerproduct path to LLVM. For now, this only adds support for one of the many potential flavors of vector.contract/vector.outerproduct but unsupported cases will fail gratefully. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D143965
-
Diego Caballero authored
This patch adds the conversion patterns to lower masked reduction operations to the corresponding vp intrinsics in LLVM. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D142177
-
Fangrui Song authored
Following recent changes to remove non-core features of the legacy PM/optimization pipeline.
-
Kazu Hirata authored
This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
-