- Jul 07, 2021
-
-
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.
-
Tony Tye authored
Reviewed By: kzhuravl Differential Revision: https://reviews.llvm.org/D105377
-
Krzysztof Parzyszek authored
This applies to memory accesses to (compile-time) constant addresses (such as memory-mapped registers). Currently when a misaligned access to such an address is detected, a fatal error is reported. This change will emit a remark, and the compilation will continue with a trap, and "undef" (for loads) emitted. This fixes https://llvm.org/PR50838. Differential Revision: https://reviews.llvm.org/D50524
-
Nico Weber authored
Differential Revision: https://reviews.llvm.org/D105476
-
Eli Friedman authored
As part of making ScalarEvolution's handling of pointers consistent, we want to forbid multiplying a pointer by -1 (or any other value). This means we can't blindly subtract pointers. There are a few ways we could deal with this: 1. We could completely forbid subtracting pointers in getMinusSCEV() 2. We could forbid subracting pointers with different pointer bases (this patch). 3. We could try to ptrtoint pointer operands. The option in this patch is more friendly to non-integral pointers: code that works with normal pointers will also work with non-integral pointers. And it seems like there are very few places that actually benefit from the third option. As a minimal patch, the ScalarEvolution implementation of getMinusSCEV still ends up subtracting pointers if they have the same base. This should eliminate the shared pointer base, but eventually we'll need to rewrite it to avoid negating the pointer base. I plan to do this as a separate step to allow measuring the compile-time impact. This doesn't cause obvious functional changes in most cases; the one case that is significantly affected is ICmpZero handling in LSR (which is the source of almost all the test changes). The resulting changes seem okay to me, but suggestions welcome. As an alternative, I tried explicitly ptrtoint'ing the operands, but the result doesn't seem obviously better. I deleted the test lsr-undef-in-binop.ll becuase I couldn't figure out how to repair it to test what it was actually trying to test. Recommitting with fix to MemoryDepChecker::isDependent. Differential Revision: https://reviews.llvm.org/D104806
-
Louis Dionne authored
I'm not sure what that gains us, and it creates a problem when trying to run the tests against libc++ with a custom install name dir (e.g. /usr/lib), since the library that we link against (in the build tree) will advertise itself as /usr/lib/libc++.dylib, so we end up linking against the system dylib at runtime. Differential Revision: https://reviews.llvm.org/D105499
-
Louis Dionne authored
-
Craig Topper authored
These are fp->int conversions using either RMM or dynamic rounding modes. The lround and lrint opcodes have a return type of either i32 or i64 depending on sizeof(long) in the frontend which should follow xlen. llround/llrint should always return i64 so we'll need a libcall for those on rv32. The frontend will only emit the intrinsics if -fno-math-errno is in effect otherwise a libcall will be emitted which will not use these ISD opcodes. gcc also does this optimization. Reviewed By: arcbbb Differential Revision: https://reviews.llvm.org/D105206
-
Michał Górny authored
Update the asan_symbolize_script for changes in argparse output in Python 3.10. The parser output 'options' instead of 'optional arguments'. Differential Revision: https://reviews.llvm.org/D105489
-
Michał Górny authored
Differential Revision: https://reviews.llvm.org/D105474
-