- Jul 23, 2021
-
-
Mark de Wever authored
Updates the status pages with the LWG issues accepted in the Standard during the June 2021 plenary session. The LWG papers for this meeting have been added in D105103. Differential Revision: https://reviews.llvm.org/D106529
-
David Green authored
This adds some missing single source shuffle costs for AArch64, of i16 and i8 vectors. v4i16 are the same as v4i32 with a worse case cost of 3 coming from the perfect shuffle tables. The larger vector sizes expand into a constant pool, plus a load (and adrp) and a tbl. I arbitrarily chose 8 for the cost to be expensive but not too expensive. Differential Revision: https://reviews.llvm.org/D106241
-
Nicolas Vasilache authored
When the source tensor of a tensor.insert_slice is not equivalent to an inplace buffer an extra copy is necessary. This revision adds the missing copy. Reviewed By: gysit Differential Revision: https://reviews.llvm.org/D106587
-
Serge Pavlov authored
Constfold constrained variants of operations fadd, fsub, fmul, fdiv, frem, fma and fmuladd. The change also sets up some means to support for removal of unused constrained intrinsics. They are declared as accessing memory to model interaction with floating point environment, so they were not removed, as they have side effect. Now constrained intrinsics that have "fpexcept.ignore" as exception behavior are removed if they have no uses. As for intrinsics that have exception behavior other than "fpexcept.ignore", they can be removed if it is known that they do not raise floating point exceptions. It happens when doing constant folding, attributes of such intrinsic are changed so that the intrinsic is not claimed as accessing memory. Differential Revision: https://reviews.llvm.org/D102673
-
Sebastian Neubauer authored
Clear the map when running the analysis multiple times. The assertion that should ensure that every function is only analyzed once triggered sometimes (once every ~70 compiles of some graphics pipelines) when two functions of subsequent runs were allocated at the same address. Differential Revision: https://reviews.llvm.org/D106452
-
LLVM GN Syncbot authored
-
Carl Ritson authored
Add maximum NSA size limit as an ISA feature. Use this to reduce NSA usage on GFX10.1 to avoid stability issues with 4 and 5 dwords NSA instructions. Maintain use of longer NSA instructions on GFX10.3. Note: this also contains some minor fixes for GlobalISel which did not work correctly with non-NSA form instructions on GFX10. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D103348
-
Dmitry Vyukov authored
Now that Mutex is blocking there is no point in using BlockingMutex. Switch to Mutex. Depends on D106379. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D106560
-
Dmitry Vyukov authored
Now that sanitizer_common mutex has feature-parity with tsan mutex, switch tsan to the sanitizer_common mutex and remove tsan's custom mutex. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D106379
-
Dmitry Vyukov authored
In preparation for replacing tsan Mutex with sanitizer_common Mutex, which has thread-safety annotations. Thread safety analysis does not understand MetaMap::GetAndLock which returns a locked sync object. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D106548
-
Dmitry Vyukov authored
This is preparation to switching to the sanitizer_common Mutex. Without this change after the switch we will start failing on existing from the runtime with runtime mutexes held. Previously it worked because CheckNoLocks did not see sanitizer_common mutexes. Depends on D106547. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D106558
-
Dmitry Vyukov authored
Rename Mutex class in tests to avoid conflicts with sanitizer_common Mutex. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D106547
-
Dmitry Vyukov authored
Copy internal deadlock detector from tsan to sanitizer_common (with some cosmetic changes). Tsan version will be deleted in subsequent changes. This allows us to switch tsan to the sanitizer_common mutex and remove tsan's mutex. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D106546 -
Cullen Rhodes authored
Reviewed By: david-arm Differential Revision: https://reviews.llvm.org/D106568
-
Fraser Cormack authored
-
Craig Topper authored
-
Fraser Cormack authored
These tests show missed opportunities in the SelectionDAG layer when dealing with scalable-vector splats. All of these are handled for the equivalent `ISD::BUILD_VECTOR` code, and the tests have largely been translated from the equivalent X86 tests. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D106574
-
Siva Chandra Reddy authored
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D106604
-
Johannes Doerfert authored
With D106496 we can make the globalization fallback stack much simpler and this version doesn't seem to experience the spurious failures and deadlocks we have seen before. Differential Revision: https://reviews.llvm.org/D106576
-
Johannes Doerfert authored
A simplification callback can mean that the IR value is modified beyond the apparent IR semantics. That is, a `i1 true` could be replaced by an `i1 false` based on high-level domain-specific information. If a user provides a simplification callback we will not look at the IR but instead give up if the callback returns a nullptr.
-
Hsiangkai Wang authored
Differential Revision: https://reviews.llvm.org/D105086
-
Jacques Pienaar authored
-
Tom Stellard authored
This doesn't appear to be used anywhere. Reviewed By: serge-sans-paille Differential Revision: https://reviews.llvm.org/D100021
-
Leonard Grey authored
Ported from COFF/ELF; test is adapted from test/COFF/thinlto-archivecollision.ll LTO expects every bitcode file to have a unique name. If given multiple bitcode files with the same name, it errors with "Expected at most one ThinLTO module per bitcode file". This change incorporates the archive name, to disambiguate members with the same name in different archives and the offset in archive to disambiguate members with the same name in the same archive. Differential Revision: https://reviews.llvm.org/D106179
-
Joseph Huber authored
-
Joseph Huber authored
This patch adds support for two environment variables to configure the device. ``LIBOMPTARGET_STACK_SIZE`` sets the amount of memory in bytes that each thread has for its stack. ``LIBOMPTARGET_HEAP_SIZE`` sets the amount of heap memory that can be allocated using malloc / free on the device. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D106627
-
Nico Weber authored
Seems to work. (I only tried macOS, not iOS, but need to allow both because the iOS toolchain used to build compiler-rt asserts otherwise.)
-
Nico Weber authored
Ran `git ls-files '*.gn' '*.gni' | xargs llvm/utils/gn/gn.py format`.
-
Nico Weber authored
No behavior change
-
Giorgis Georgakoudis authored
-
Kai Luo authored
According to https://www.ibm.com/docs/en/xl-c-and-cpp-aix/16.1?topic=functions-compare-swap-compare-swaplp XL's `__compare_and_swap` has a weird behavior that > In either case, the contents of the memory location specified by addr are copied into the memory location specified by old_val_addr. (unlike c11 `atomic_compare_exchange` specified in http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf) This patch let clang's implementation follow this behavior. Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D106344
-
Giorgis Georgakoudis authored
SPMDization D102307 detects incompatible OpenMP runtime calls to abort converting a target region to SPMD mode. Calls to memory allocation/de-allocation routines kmpc_alloc_shared, kmpc_free_shared are incompatible unless they are removed by AAHeapToStack/AAHeapToShared analysis. This patch extends SPMDization detection to include AAHeapToStack/AAHeapToShared analysis results for enlarging the scope of possible SPMDized regions detected. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D105634
-
Vitaly Buka authored
TARGET lld is always false there.
-
Vitaly Buka authored
-
Rob Suderman authored
If this pass executes without shape inference its possible for unranked tensors to appear in the IR. This pass should gracefully handle unranked tensors. Differential Revision: https://reviews.llvm.org/D106617
-
Thomas Johnson authored
Differential Revision: https://reviews.llvm.org/D106602
-
Gulfem Savrun Yeniceri authored
This patch adds binary id into profiles to easily associate binaries with the corresponding profiles. There is an RFC that discusses the motivation, design and implementation in more detail: https://lists.llvm.org/pipermail/llvm-dev/2021-June/151154.html Differential Revision: https://reviews.llvm.org/D102039
-
Fangrui Song authored
This generalizes D70146 (SHT_NOTE) to more reserved sections and makes our rules more consistent. Now SHF_GROUP is more similar to SHF_LINK_ORDER. For SHT_INIT_ARRAY/SHT_FINI_ARRAY, the rule will be closer to PE/COFF link.exe. Previously sanitizers use llvm.global_ctors to make module_ctor a GC root, which is considered an abuse. https://groups.google.com/g/generic-abi/c/TpleUEkNoQI We can squeak through on compatibility issues because compilers otherwise don't use SHF_GROUP special sections.
-
Fangrui Song authored
-
Hongtao Yu authored
Fixing a typo in SampleContextTracker to use debug name when debug linkage name is no present. This should only affect C programs. Saw 0.6% perf win on Cinder which is mostly C code. Reviewed By: wenlei, wmi Differential Revision: https://reviews.llvm.org/D106599
-