FailedChanges

Summary

  1. [Asan] Cleanup atomic usage in allocator (details)
  2. [InstSimplify] Fold degenerate abs of abs form (details)
  3. Add proper move ctor/move assign to APValue. NFCI. (details)
  4. [ARM] Regenerate tests. NFC (details)
  5. [ARM] Remove -O3 from mve intrinsic tests. NFC (details)
  6. [X86][AVX] lowerShuffleWithPERMV - adjust binary shuffle masks to account for widening on non-VLX targets (details)
  7. [SmallVector] Move error handling out of line (details)
  8. Thread safety analysis: Test and document release_generic_capability (details)
  9. Thread safety analysis: Improve documentation for scoped capabilities (details)
  10. [mlir] Add Shaped Type, Tensor Type and MemRef Type to python bindings. (details)
  11. [DSE,MemorySSA] Add a few additional debug messages. (details)
  12. [compiler-rt] Implement __clear_cache() on OpenBSD/arm (details)
  13. [ValueTracking] Avoid known bits fallback for non-zero get check (NFCI) (details)
  14. [asan_symbolize] Pass --demangle/--no-demangle instead of --demangle={True,False} (details)
Commit b11db3606ca180521f8400aed730281108b350b4 by Vitaly Buka
[Asan] Cleanup atomic usage in allocator

There are no know bugs related to this, still it may fix some latent ones.
Main concerns with preexisting code:
1. Inconsistent atomic/non-atomic access to the same field.
2. Assumption that bitfield chunk_state is always the first byte without
    even taking into account endianness.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D86917
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp
Commit ff218cbc84ff3783cb5ad030397adef8c9e8d444 by nikita.ppv
[InstSimplify] Fold degenerate abs of abs form

This addresses the remaining issue from D87188. Due to a series of
folds, we may end up with abs-of-abs represented as
x == 0 ? -abs(x) : abs(x). Rather than recognizing this as a special
abs pattern and doing an abs-of-abs fold on it afterwards,
I'm directly folding this to one of the select operands in InstSimplify.

The general pattern falls into the "select with operand replaced"
category, but that fold is not powerful enough to recognize that
both hands of the select are the same for value zero.

Differential Revision: https://reviews.llvm.org/D87197
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
The file was modifiedllvm/test/Transforms/InstSimplify/abs_intrinsic.ll
Commit 4d0312c8e05be5353c6c29b31036647dceca3ce5 by benny.kra
Add proper move ctor/move assign to APValue. NFCI.

Swapping 64 bytes to make a move isn't cheap.
The file was modifiedclang/include/clang/AST/APValue.h
The file was modifiedclang/lib/AST/APValue.cpp
Commit d866dc374986ac1cff6b4950ea5fa3f8687fdadd by david.green
[ARM] Regenerate tests. NFC
The file was modifiedllvm/test/CodeGen/Thumb2/mve-pred-vctpvpsel.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-gather-scatter-tailpred.ll
Commit 667e800bb3a8c1bdda0cabad7549c766b3424064 by david.green
[ARM] Remove -O3 from mve intrinsic tests. NFC
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vminnmq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmaxnmaq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vminq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmaxnmq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vminnmaq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmaxq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmaxaq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vminaq.c
Commit ecac5c28089283fbaef1fec758535ca700095a09 by llvm-dev
[X86][AVX] lowerShuffleWithPERMV - adjust binary shuffle masks to account for widening on non-VLX targets

rGabd33bf5eff2 enabled us to pad 128/256-bit shuffles to 512-bit on non-VLX targets, but wasn't updating binary shuffles to account for the new vector width.
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/shuffle-vs-trunc-512.ll
The file was modifiedllvm/test/CodeGen/X86/shuffle-strided-with-offset-512.ll
Commit 8c386c94749a78392fd763f8449ca3e55f030ffd by benny.kra
[SmallVector] Move error handling out of line

This reduces duplication and avoids emitting ice cold code into every
instance of grow().
The file was modifiedllvm/include/llvm/ADT/SmallVector.h
The file was modifiedllvm/lib/Support/SmallVector.cpp
Commit cc6713a2c35edf17cfb567284cc76b374308e5e4 by aaronpuchert
Thread safety analysis: Test and document release_generic_capability

The old locking attributes had a generic release, but as it turns out
the capability-based attributes have it as well.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D87064
The file was modifiedclang/docs/ThreadSafetyAnalysis.rst
The file was modifiedclang/test/SemaCXX/thread-safety-annotations.h
Commit bbb3baf6205c54231257f64fd18661a13a5c97ee by aaronpuchert
Thread safety analysis: Improve documentation for scoped capabilities

They are for more powerful than the current documentation implies, this
adds

* adopting a lock,
* deferring a lock,
* manually unlocking the scoped capability,
* relocking the scoped capability, possibly in a different mode,
* try-relocking the scoped capability.

Also there is now a generic explanation how attributes on scoped
capabilities work. There has been confusion in the past about how to
annotate them (see e.g. PR33504), hopefully this clears things up.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D87066
The file was modifiedclang/docs/ThreadSafetyAnalysis.rst
Commit 54d432aa6b835ee7e835d0626c15ca5e7eb83ab4 by stellaraccident
[mlir] Add Shaped Type, Tensor Type and MemRef Type to python bindings.

Based on the PyType and PyConcreteType classes, this patch implements the bindings of Shaped Type, Tensor Type and MemRef Type subclasses.
The Tensor Type and MemRef Type are bound as ranked and unranked separately.
This patch adds the ***GetChecked C API to make sure the python side can get a valid type or a nullptr.
Shaped type is not a kind of standard types, it is the base class for vectors, memrefs and tensors, this patch binds the PyShapedType class as the base class of Vector Type, Tensor Type and MemRef Type subclasses.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D87091
The file was modifiedmlir/lib/CAPI/IR/StandardTypes.cpp
The file was modifiedmlir/lib/Bindings/Python/IRModules.cpp
The file was modifiedmlir/include/mlir-c/StandardTypes.h
The file was modifiedmlir/test/Bindings/Python/ir_types.py
Commit 16bb71fd4f898d296397336ecb81b79a7297933c by flo
[DSE,MemorySSA] Add a few additional debug messages.
The file was modifiedllvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
Commit 8542dab909f895a8b6812428bb5e1acf7ea15305 by brad
[compiler-rt] Implement __clear_cache() on OpenBSD/arm
The file was modifiedcompiler-rt/lib/builtins/clear_cache.c
Commit b536cbaac5f85a3a1ab8c971c300cd27e5603fda by nikita.ppv
[ValueTracking] Avoid known bits fallback for non-zero get check (NFCI)

The known bits fall back will never be able to infer a non-null
value here, so don't bother.
The file was modifiedllvm/lib/Analysis/ValueTracking.cpp
Commit ab68517e6b7e51b84c4b0e813a30258ec1ce5da5 by i
[asan_symbolize] Pass --demangle/--no-demangle instead of --demangle={True,False}

`--demangle={True,False}` were accepted but disallowed after llvm-symbolizer's switch to OptTable.
(`--demangle={true,false}` were temporarily supported but they are case sensitive.)
The file was modifiedcompiler-rt/lib/asan/scripts/asan_symbolize.py