- Jul 07, 2021
-
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Update costs based on the worst case costs from the script in D103695. Move to using legalized types wherever possible, which allows us to prune the cost tables.
-
Alexey Bataev authored
Current implementation is not compatible with asynchronous target regions, need to remove it. Differential Revision: https://reviews.llvm.org/D105375
-
Alexander Belyaev authored
This is a first step to move (Tensor)Expand/CollapseShapeOp to tensor/memref dialects. Differential Revision: https://reviews.llvm.org/D105547
-
Nicolas Vasilache authored
Add the rewrite of PadTensorOp to InitTensor + InsertSlice before the bufferization analysis starts. This is exercised via a more advanced integration test. Since the new behavior triggers folding, 2 tests need to be updated. One of those seems to exhibit a folding issue with `switch` and is modified. Differential Revision: https://reviews.llvm.org/D105549
-
Yi Zhang authored
Refactor the original code to rewrite a PadTensorOp into a sequence of InitTensorOp, FillOp and InsertSliceOp without vectorization by default. `GenericPadTensorOpVectorizationPattern` provides a customized OptimizeCopyFn to vectorize the copying step. Reviewed By: silvas, nicolasvasilache, springerm Differential Revision: https://reviews.llvm.org/D105293
-
Nicolas Vasilache authored
The `bufferizesToMemoryRead` condition was too optimistics in the case of operands that map to a block argument. This is the case for ForOp and TiledLoopOp. For such ops, forward the call to all uses of the matching BBArg. Differential Revision: https://reviews.llvm.org/D105540
-
Simon Pilgrim authored
Update (mainly) vXi8/vXi16 -> vXf32/vXf64 sitofp/uitofp costs based on the worst case costs from the script in D103695. Move to using legalized types wherever possible, which allows us to prune the cost tables.
-
LLVM GN Syncbot authored
-
Louis Dionne authored
Differential Revision: https://reviews.llvm.org/D102135
-
Max Kazantsev authored
Removed repeated call of L->getHeader(). Now using previously stored return value. Patch by Dmitry Makogon! Differential Revision: https://reviews.llvm.org/D105535 Reviewed By: mkazantsev
-
Dylan Fleming authored
Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D105350
-
Adrian Kuegel authored
Also add a lowering pattern from Complex to Standard/Math dialect. Differential Revision: https://reviews.llvm.org/D105538
-
Bairen Yi authored
Somehow it is not exported in C API. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D105422
-
David Green authored
We already have reassociation code for Adds and Ors separately in DAG combiner, this adds it for the combination of the two where Ors act like Adds. It reassociates (add (or (x, c), y) -> (add (add (x, y), c)) where we know that the Ors operands have no common bits set, and the Or has one use. Differential Revision: https://reviews.llvm.org/D104765
-
Saiyedul Islam authored
Following clang driver tests invoke llvm-ar, so ensure that check-clang rebuilds llvm-ar. * test/Driver/clang-offload-bundler.c * test/Driver/hip-link-save-temps.hip * test/Driver/hip-link-static-library.hip * test/Driver/hip-toolchain-rdc-static-lib.hip Differential Revision: https://reviews.llvm.org/D105285
-
Dylan Fleming authored
Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D104239
-
Alex Zinenko authored
"Standard-to-LLVM" conversion is one of the oldest passes in existence. It has become quite large due to the size of the Standard dialect itself, which is being split into multiple smaller dialects. Furthermore, several conversion features are useful for any dialect that is being converted to the LLVM dialect, which, without this refactoring, creates a dependency from those conversions to the "standard-to-llvm" one. Put several of the reusable utilities from this conversion to a separate library, namely: - type converter from builtin to LLVM dialect types; - utility for building and accessing values of LLVM structure type; - utility for building and accessing values that represent memref in the LLVM dialect; - lowering options applicable everywhere. Additionally, remove the type wrapping/unwrapping notion from the type converter that is no longer relevant since LLVM types has been reimplemented as first-class MLIR types. Reviewed By: pifon2a Differential Revision: https://reviews.llvm.org/D105534
-
Nicolas Vasilache authored
Differential Revision: https://reviews.llvm.org/D105537
-
Jay Foad authored
There is no need to cast records to strings before comparing them.
-
Jean Perier authored
Name resolution is always creating symbols with HostAssocDetails for host variable names inside internal procedures. This helps lowering identifying and dealing with such variables inside internal procedures. However, the case where the variable appears in an ArrayRef mis-parsed as a FunctionRef goes through a different name resolution path that did not create such HostAssocDetails when needed. Pointer assignment RHS are also skipping this path. Add the logic to create HostAssocDetails for host symbols inisde internal procedures that appear in mis-parsed ArrayRef or in pointer assignment RHS. Differential Revision: https://reviews.llvm.org/D105464
-
Srishti Srivastava authored
When an affine.if operation is returning/yielding results and has a trivially true or false condition, then its 'then' or 'else' block, respectively, is promoted to the affine.if's parent block and then, the affine.if operation is replaced by the correct results/yield values. Relevant test cases are also added. Signed-off-by:
Srishti Srivastava <srishti.srivastava@polymagelabs.com> Differential Revision: https://reviews.llvm.org/D105418
-
Fangrui Song authored
-
Uday Bondhugula authored
Split out GPU ops library from GPU transforms. This allows libraries to depend on GPU Ops without needing/building its transforms. Differential Revision: https://reviews.llvm.org/D105472
-
Hsiangkai Wang authored
Differential Revision: https://reviews.llvm.org/D103527
-
Stanislav Mekhanoshin authored
We have several checks for both cl::opt and OptLevel over our pass config, although these checks do not properly work if default value of a cl::opt will be false. Create a helper to use instead and properly handle it. NFC for now. Differential Revision: https://reviews.llvm.org/D105517
-
Johannes Doerfert authored
Before we replaced value by registering all their uses. However, as we replace a value old uses become stale. We now replace values explicitly and keep track of "new values" when doing so to avoid replacing only uses in stale/old values but not their replacements.
-
Johannes Doerfert authored
-
Johannes Doerfert authored
We often need to deal with the value lattice that contains none and undef as special values. A simple helper makes this much nicer. Differential Revision: https://reviews.llvm.org/D103857
-
Johannes Doerfert authored
When we do simplification via AAPotentialValues or AAValueConstantRange we need to simplify the operands of an instruction we deconstruct first. This does not only improve the result, see for example range.ll, but is required as we allow outside AAs to provide simplification rules via callbacks. If we do ignore the simplification rules and base other simplifications on the IR instead we can create an inconsistent state.
-
Uday Bondhugula authored
The normalizeAffineForOp and normalizedAffineParallel methods were misplaced in the AffineLoopNormalize pass file while their declarations were in affine utils. Move these to affine Utils.cpp. NFC. Differential Revision: https://reviews.llvm.org/D105468
-
Tom Stellard authored
This will use the python that LLVM was configured to use rather than python from PATH. Reviewed By: serge-sans-paille Differential Revision: https://reviews.llvm.org/D105224
-
Nemanja Ivanovic authored
The combine was disabled in 4e22c726 as it caused failures in the ppc64be-multistage (bootstrap) bot. It turns out that the combine did not correctly update the MMO for the high load which caused aliased stores to be reported as unaliased. This patch fixes that problem and re-enables the combine.
-
Matheus Izvekov authored
Named return of a variable with aligned attribute would trip an assert in case alignment was dependent. Signed-off-by:
Matheus Izvekov <mizvekov@gmail.com> Reviewed By: rsmith Differential Revision: https://reviews.llvm.org/D105380
-
Eli Friedman authored
Not a complete set of tests, but a starting point if anyone wants to look at improving this.
-
Eli Friedman authored
We should probably come up with some better way to do this, but let's make sure to catch known issues for now.
-
David Blaikie authored
This fixes a gap in the `overloadable` attribute support (K&R declared functions would get mangled symbol names, but that name wouldn't be represented in the debug info linkage name field for the function) and in -funique-internal-linkage-names (this came up in review discussion on D98799) where K&R static declarations would not get the uniqued linkage names.
-
Stanislav Mekhanoshin authored
There are cases where infer address spaces pass cannot yet infer an address space in the opt pipeline and then in the llc pipeline it runs too late for atomic expand pass to benefit from a specific address space. Move atomic expand pass past the infer address spaces. Fixes: SWDEV-293410 Differential Revision: https://reviews.llvm.org/D105511
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D105515
-
Stanislav Mekhanoshin authored
This was obviously copy-pasted.
-