- Dec 12, 2022
-
-
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
-
Tom Eccles authored
The fastmath test checks that crtfastmath.o is added between crtbeginS.o and crtend.o. On some systems the first file is instead called crtbegin.o - match these too. Related to https://reviews.llvm.org/D138675
-
Sameer Sahasrabuddhe authored
-
Max Kazantsev authored
It is a preparatory step for further improvements.
-
Markus Böck authored
To reproduce: Download and run the latest Firefox ASAN build (https://firefox-ci-tc.services.mozilla.com/api/index/v1/task/gecko.v2.mozilla-central.latest.firefox.win64-asan-opt/artifacts/public/build/target.zip) on Windows 11 (version 10.0.22621 Build 22621); it will crash on launch. Note that this doesn't seem to crash on another Windows 11 VM I've tried, so I'm not sure how reproducible it is across machines, but it reproduces on my machine every time. The problem seems to be that when overriding the memset function in OverrideFunctionWithRedirectJump(), the relative_offset is stored as a uptr. Per the Intel x64 instruction set reference (https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-instruction-set-reference-manual-325383.pdf - warning: large PDF), on page 646 the jmp instruction (specifically the near jump flavors that start with E9, which are the ones the OverrideFunctionWithRedirectJump() considers) treats the offset as a signed displacement. This causes an incorrect value to be stored for REAL(memset) which points to uninitialized memory, and a crash the next time that gets called. The fix is to simply treat that offset as signed. I have also added a test case. Fixes https://github.com/llvm/llvm-project/issues/58846 Differential Revision: https://reviews.llvm.org/D137788
-
Simon Pilgrim authored
Differential Revision: https://reviews.llvm.org/D139642
-
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
-