Progress:
In progressChanges

Summary

  1. [objdump][macho] Check arch before formating reloc name as arm64 addend (details)
  2. PR44406: Follow behavior of array bound constant folding in more recent versions of GCC. (details)
  3. Fixed a failure when const matcher fails, added a test to catch (details)
  4. [PowerPC] Implementation of 128-bit Binary Vector Rotate builtins (details)
  5. Fix accidental use of VLAs that causes these tests to fail after Clang (details)
  6. [libomptarget] Fix copy-to motion for PTR_AND_OBJ entries where PTR is a struct member. (details)
  7. Make the check for whether we should memset(0) an aggregate (details)
  8. [AArch64][GlobalISel] Select csinc if a select has a 1 on RHS. (details)
  9. [NPM] Fix some PhaseOrdering tests under NPM (details)
Commit 109113015ebeeceec862fc53a678b3619a879ce4 by daniel_l_sanders
[objdump][macho] Check arch before formating reloc name as arm64 addend

Before formating ARM64_RELOC_ADDEND relocation target name as a hex
number, the architecture need to be checked since other architectures
can define a different relocation type with the same integer as
ARM64_RELOC_ADDEND.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D89094
The file was modifiedllvm/tools/llvm-objdump/MachODump.cpp
Commit 552c6c2328723a248c2b4d2765f75d49129dff20 by richard
PR44406: Follow behavior of array bound constant folding in more recent versions of GCC.

Old GCC used to aggressively fold VLAs to constant-bound arrays at block
scope in GNU mode. That's non-conforming, and more modern versions of
GCC only do this at file scope. Update Clang to do the same.

Also promote the warning for this from off-by-default to on-by-default
in all cases; more recent versions of GCC likewise warn on this by
default.

This is still slightly more permissive than GCC, as pointed out in
PR44406, as we still fold VLAs to constant arrays in structs, but that
seems justifiable given that we don't support VLA-in-struct (and don't
intend to ever support it), but GCC does.

Differential Revision: https://reviews.llvm.org/D89523
The file was modifiedclang/test/Sema/offsetof-64.c
The file was modifiedclang/test/Sema/decl-in-prototype.c
The file was modifiedclang/test/Sema/builtins.c
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/Sema/complex-int.c
The file was modifiedclang/test/PCH/cxx-constexpr.cpp
The file was modifiedclang/test/Sema/i-c-e.c
The file was modifiedclang/test/Profile/misexpect-switch-only-default-case.c
The file was modifiedclang/test/Sema/darwin-align-cast.c
The file was modifiedclang/test/Sema/vla.c
The file was modifiedclang/test/Sema/const-eval.c
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/docs/UsersManual.rst
The file was modifiedclang/test/Sema/rounding-math.c
The file was modifiedclang/test/Misc/warning-flags.c
The file was modifiedclang/test/SemaCXX/anonymous-struct.cpp
The file was modifiedclang/test/CXX/drs/dr3xx.cpp
The file was modifiedclang/test/SemaCXX/constant-expression.cpp
The file was modifiedclang/test/SemaCXX/i-c-e-cxx.cpp
The file was modifiedclang/test/Profile/misexpect-switch-default.c
The file was modifiedclang/test/SemaCXX/cxx1z-noexcept-function-type.cpp
The file was modifiedclang/test/Sema/gnu-flags.c
The file was modifiedclang/test/Profile/misexpect-switch.c
The file was modifiedclang/test/Sema/const-eval-64.c
The file was modifiedclang/test/SemaObjC/gcc-cast-ext.m
The file was modifiedclang/test/Sema/builtin-assume.c
The file was modifiedclang/test/Sema/typedef-variable-type.c
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedclang/test/Profile/misexpect-switch-nonconst.c
The file was modifiedclang/test/Sema/struct-decl.c
The file was modifiedclang/test/CXX/basic/basic.types/p10.cpp
The file was modifiedclang/test/CodeGen/vla.c
Commit c096377905db8144ed310247609134783b2c9b73 by rob.suderman
Fixed a failure when const matcher fails, added a test to catch

Differential Revision: https://reviews.llvm.org/D89593
The file was modifiedmlir/test/mlir-tblgen/pattern.mlir
The file was modifiedmlir/tools/mlir-tblgen/RewriterGen.cpp
Commit d30155feaa9c4ddd09cb115fb30ea5810f63af9c by conanap
[PowerPC] Implementation of 128-bit Binary Vector Rotate builtins

This patch implements 128-bit Binary Vector Rotate builtins for PowerPC10.

Differential Revision: https://reviews.llvm.org/D86819
The file was addedllvm/test/CodeGen/PowerPC/p10-vector-rotate.ll
The file was modifiedclang/include/clang/Basic/BuiltinsPPC.def
The file was modifiedclang/lib/Headers/altivec.h
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrPrefix.td
The file was modifiedclang/test/CodeGen/builtins-ppc-p10vector.c
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
The file was modifiedllvm/include/llvm/IR/IntrinsicsPowerPC.td
Commit efd02c1548ee458d59063f6393e94e972b5c3d50 by richard
Fix accidental use of VLAs that causes these tests to fail after Clang
commit 552c6c2328723a248c2b4d2765f75d49129dff20.
The file was modifiedcompiler-rt/test/asan/TestCases/strncmp_strict.c
The file was modifiedcompiler-rt/test/asan/TestCases/strncasecmp_strict.c
Commit 5adb3a6d86eecade2cb94b1a04d35e673d4e5866 by georgios.rokos
[libomptarget] Fix copy-to motion for PTR_AND_OBJ entries where PTR is a struct member.

This patch fixes a problem whereby the pointee object of a PTR_AND_OBJ entry with a `map(to)` motion clause can be overwritten on the device even if its reference counter is >=1.

Currently, we check the reference counter of the parent struct in order to determine whether the motion clause should be respected, but since the pointee object is not part of the struct, it's got its own reference counter which should be used to enqueue the copy or discard it.

The same behavior has already been implemented in targetDataEnd (omptarget.cpp:539-540), but we somehow missed doing the same in targetDataBegin.

Differential Revision: https://reviews.llvm.org/D89597
The file was addedopenmp/libomptarget/test/mapping/ptr_and_obj_motion.c
The file was modifiedopenmp/libomptarget/src/omptarget.cpp
Commit d4aac67859640bdb7e8ed3123a00c3f200f89b9c by richard
Make the check for whether we should memset(0) an aggregate
initialization a little smarter.

Look through casts that preserve zero-ness when determining if an
initializer is zero, so that we can handle cases like an {0} initializer
whose corresponding field is a type other than 'int'.
The file was modifiedclang/lib/CodeGen/CGExprAgg.cpp
The file was modifiedclang/test/CodeGenCXX/cxx11-initializer-aggregate.cpp
Commit 4ad459997e65fc97427a10b37123b7e0fed1931f by Amara Emerson
[AArch64][GlobalISel] Select csinc if a select has a 1 on RHS.

Differential Revision: https://reviews.llvm.org/D89513
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/fold-select.mir
Commit dd32cd4c0d66664691e5fdcd550bca0b03398d44 by aeubanks
[NPM] Fix some PhaseOrdering tests under NPM

These either already have corresponding NPM RUN lines,
or need to be fixed to not use -analyze.
The file was modifiedllvm/test/Transforms/PhaseOrdering/loop-rotation-vs-common-code-hoisting.ll
The file was modifiedllvm/test/Transforms/PhaseOrdering/reassociate-after-unroll.ll
The file was modifiedllvm/test/Transforms/PhaseOrdering/scev.ll
The file was modifiedllvm/test/Transforms/PhaseOrdering/scev-custom-dl.ll