- Dec 12, 2022
-
-
Dmitry Vyukov authored
Only mark functions that have address-taken locals as requiring UAR checking. On a large internal app this reduces number of marked functions from 78441 to 66618. Mostly small, trivial getter/setter-type functions are unmarked, but also some amount of larger number-crunching-type functions are unmarked as well. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D139811
-
Max Kazantsev authored
This separation is a preparatory step for further improvements in this code. Also simplifies this function's API.
-
Nicolas Vasilache authored
-
Sameer Sahasrabuddhe authored
Assertion fired in openmp-offload-amdgpu-runtime: https://lab.llvm.org/buildbot/#/builders/193/builds/23177 This reverts commit c2a0baad.
-
Andrzej Warzynski authored
This patch implements the vectorization of tensor.extract for arbitrary tensors. It basically extends https://reviews.llvm.org/D133786 by adding support for n-D tensors (n >= 2). This is implemented by essentially flattening the indices. When benchmarking the vectorized code, we have observed that it is slower than the scalar code. That's most likely due to sub-optimal (and, in general slow) gather loads. More work is needed to identify an implementation and/or a representation that would lead to better code. In the meantime, the vectorization of n-D tensors (where n >= 2) has to be explicitly enabled. This can be done either via: * transfer dialect's `vectorize_nd_extract` attribute, * dedicated bool argument in the `vectorize` method from "Vectorization.cpp". The second option was added to control the new functionality through means other than the transfer dialect. Related discussion: https://github.com/iree-org/iree/issues/9198 Differential Revision: https://reviews.llvm.org/D137660
-
Max Kazantsev authored
There was a crippled version of this transform for Inverted predicate, so the same query was done twice. Advanced version of this transform wasn't implemented for inverted condition. Thus, the code was hard to read. The only real purpose of the Inverted param was to make a simple isKnownPredicateAt query. Instead if this, use evaluatePredicateAt to solve the task for both inverted and non-inverted predicate. This slightly changes the order of queries, but effectively it should save some time by avoiding duplicating queries, and simplifies the code a lot. I also could not find any evidence that we ever eliminate anything with Inverted = true, but conservatively preserved the current behavior. Maybe we can remove it and save some compile time. Differential Revision: https://reviews.llvm.org/D139814 Reviewed By: nikic
-
OCHyams authored
The Assignment Tracking debug-info feature is outlined in this RFC: https://discourse.llvm.org/t/ rfc-assignment-tracking-a-better-way-of-specifying-variable-locations-in-ir Split dbg.assign intrinsics into fragments similarly to what SROA already does for dbg.declares, except that there's many more intrinsics to split. The function migrateDebugInfo generates new dbg.assigns intrinsic for each part of a split store. Reviewed By: jmorse Differential Revision: https://reviews.llvm.org/D133296
-
Andrew Browne authored
``` C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\lib\Transforms\Instrumentation\DataFlowSanitizer.cpp(1062,37): error: call to constructor of 'llvm::APInt' is ambiguous llvm::APInt(32, dbgloc.getLine(), false)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\include\llvm/ADT/APInt.h(108,3): note: candidate constructor APInt(unsigned numBits, uint64_t val, bool isSigned = false) ^ C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\include\llvm/ADT/APInt.h(134,3): note: candidate constructor APInt(unsigned numBits, unsigned numWords, const uint64_t bigVal[]); ^ 1 error generated. ``` -
gonglingqin authored
To avoid excessive redundancy in test cases, use -O2 instead of -O0 for testing.
-
Alex Zinenko authored
Harden the verifier to check that the block argument type matches the operand type, when present. This was overlooked when transform dialect types were introduced. Fix the builders to preserve the insertion point before creating the block, otherwise the insertion point is updated to be within the block by `createBlock` and never reset to be after the sequence op itself, leading all following operations to be created in the unexpected to the caller place. Reviewed By: chelini, springerm Differential Revision: https://reviews.llvm.org/D139427
-
Fangrui Song authored
-
Haojian Wu authored
This is a test I missed to mention in https://reviews.llvm.org/D139087. Reviewed By: VitaNuo Differential Revision: https://reviews.llvm.org/D139696
-
Fangrui Song authored
-
OCHyams authored
Build-bot failure: https://lab.llvm.org/buildbot/#/builders/214/builds/4756 Original commit: 1d1de746 Work-around commit: 34a3259f
-
Nikita Popov authored
BasicAA currently has an optional dependency on the PhiValues analysis. However, at least with our current pipeline setup, we never actually make use of it. It's possible that this used to work with the legacy pass manager, but I'm not sure of that either. Given that this analysis has not actually been in use for a long time, and nobody noticed or complained, I think we should drop support for it and focus on one code path. It is worth noting that analysis quality for the non-PhiValues case has significantly improved in the meantime. If we really wanted to make use of PhiValues, the right way would probably be to pass it in via AAQI in places we want to use it, rather than using an optional pass manager dependency (which are an unpredictable PITA and should really only ever be used for analyses that are only preserved and not used). Differential Revision: https://reviews.llvm.org/D139719
-
LLVM GN Syncbot authored
-
David Green authored
This adds a fold which teaches the backend to fold splat(bitcast(buildvector(x,..))) or splat(bitcast(scalar_to_vector(x))) to a single splat. This only handles lane 0 splats, which are only valid under LE, and needs to be a little careful with the types it creates for the new buildvector. Differential Revision: https://reviews.llvm.org/D139611
-
Nikita Popov authored
The CFL Steens/Anders alias analysis passes are not enabled by default, and to the best of my knowledge have no pathway towards ever being enabled by default. The last significant interest in these passes seems to date back to 2016. Given the little maintenance these have seen in recent times, I also have very little confidence in the correctness of these passes. I don't think we should keep these in-tree. Differential Revision: https://reviews.llvm.org/D139703
-
Pavel Labath authored
After D133376, jumping to the return line in the otherfn function became ambiguous because it has two line entries associated with it. Work around that problem by changing the function. Filed PR59458 to track possible improvements in jump target disambiguation.
-
Benjamin Chetioui authored
Reviewed By: tpopp Differential Revision: https://reviews.llvm.org/D139698
-
Fangrui Song authored
-
Matthias Springer authored
This test case used to crash with a failed assertion: ``` AffineExpr.cpp:659 in AffineExpr simplifyMul(AffineExpr, AffineExpr): lhs.isSymbolicOrConstant() || rhs.isSymbolicOrConstant() ``` This was caused by combining two affine maps, which created a multiplication of two non-symbols.
-
Sameer Sahasrabuddhe authored
An expression of the form `gep(base, select(pred, const1, const2))` can result in a set of offsets instead of just one. PointerInfo can now track these sets instead of conservatively modeling them as Unknown. In general, AAPointerInfo now uses AAPotentialConstantValues to examine the operands of the GEP. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D138646
-
Andrew Browne authored
Authored-by:
Christopher Liebchen <liebchen@google.com> Co-authored-by:
Andrew Browne <browneee@google.com> Reviewed By: browneee Differential Revision: https://reviews.llvm.org/D139543
-
jacquesguan authored
This revision scalarizes extend/truncate for splat vector. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D122875
-
River Riddle authored
This commit adds a significant amount of visualizers attempting to cover the majority of our visualization needs. It covers: * Operations/OperationName/Ops/OpInterfaces * Attributes/Types/Attr|TypeInterfaces/NamedAttribute * Blocks/Regions * Various range types (e.g. ValueRange/TypeRange) * Values/BlockArguments/OpResults This does require an NFC change to interfaces to rename the concept field to avoid clash with the base class. It also requires exposing a few method to the debugger to help resolve information that is non-trivial to reconstruct. These methods are re-exported using a debug_Blah naming scheme to avoid messing with hot methods. Note that this makes use of the new callback feature in lldb-16 (currently trunk) that allows for providing visualizers based on a dynamic callback, instead of just the typename. It requires a very new lldb, but allows for providing good default visualization for all attributes/operations/types out of the box. Differential Revision: https://reviews.llvm.org/D139602
-
River Riddle authored
The bytecode reader currently has no mechanism that allows for directly referencing data from the input buffer safely. This commit adds shared_ptr<SourceMgr> overloads that provide an explicit and safe way of extending the lifetime of the input. The usage of these new overloads is adopted in all of our tooling, and is implicitly used in the filename only parser methods. Differential Revision: https://reviews.llvm.org/D139366
-
Amir Ayupov authored
-
Amir Ayupov authored
-
Amir Ayupov authored
-
Amir Ayupov authored
-
Amir Ayupov authored
-
Amir Ayupov authored
-
Amir Ayupov authored
-
Amir Ayupov authored
-
Amir Ayupov authored
-
Amir Ayupov authored
-
Craig Topper authored
Believe the bug has been fixed with D139169 Reviewed By: asb Differential Revision: https://reviews.llvm.org/D139753
-
Shilei Tian authored
This reverts commit ac65b3c7.
-
Shilei Tian authored
-