Changes

Summary

  1. [RISCV][compiler-rt] Fix an incorrect comment for RV64 __riscv_restore_12 (details)
  2. [clang][driver][AIX] Add system libc++ header paths to driver (details)
  3. [HWASan] Catch cases where libc populated jmp_buf. (details)
  4. [SLP][NFC]Add a test for tiny tree with stores and with not (details)
  5. [mlir][Linalg] Fail comprehensive bufferization if a memref is returned. (details)
  6. [Test] Add a test showing missing opportunities in branch deletion by indvars (details)
  7. [HWASan] Add missing newlines. (details)
  8. [test] Fix asan/scudo -shared-libsan tests with -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on (details)
Commit b8d83e83be0fd841f71bae07b664896aec88a5a7 by jrtc27
[RISCV][compiler-rt] Fix an incorrect comment for RV64 __riscv_restore_12

This was presumably copied from the RV32 implementation and not updated
like the rest.
The file was modifiedcompiler-rt/lib/builtins/riscv/restore.S
Commit 1f3925e25ae010c30273501d24b2bd4e0318fe7a by daltenty
[clang][driver][AIX] Add system libc++ header paths to driver

This change adds the system libc++ header location to the driver. As well we define
the `__LIBC_NO_CPP_MATH_OVERLOADS__` macro when using those headers, in order to suppress
conflicting C++ overloads in the system libc headers that were used by XL C++.

Reviewed By: ZarkoCA

Differential Revision: https://reviews.llvm.org/D109078
The file was modifiedclang/test/Driver/aix-toolchain-include.cpp
The file was modifiedclang/test/Driver/aix-ld.c
The file was modifiedclang/lib/Driver/ToolChains/AIX.h
The file was modifiedclang/lib/Driver/ToolChains/AIX.cpp
Commit 1a3b3301d7aa9ab25a8bdf045c77298b087e3930 by mascasa
[HWASan] Catch cases where libc populated jmp_buf.

Some setjmp calls within libc cannot be intercepted while their matching
longjmp calls can be.  This causes problems if our setjmp/longjmp
interceptors don't use the exact same format as libc for populating and
reading the jmp_buf.

We add a magic field to our jmp_buf and populate it in setjmp.  This
allows our longjmp interceptor to notice when a libc jmp_buf is passed
to it.

See discussion on https://reviews.llvm.org/D109699 and
https://reviews.llvm.org/D69045.

Fixes https://github.com/google/sanitizers/issues/1244.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D109787
The file was modifiedcompiler-rt/lib/hwasan/hwasan_interceptors.cpp
The file was modifiedcompiler-rt/lib/hwasan/hwasan.h
Commit 446e11fa2943b1c82aaf588f0df4985259fe1be2 by a.bataev
[SLP][NFC]Add a test for tiny tree with stores and with not
same/alternate instructions.
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/tiny-tree.ll
Commit 6fe77b1051cc6e01dc1ac2d47f51802ab938e076 by nicolas.vasilache
[mlir][Linalg] Fail comprehensive bufferization if a memref is returned.

Summary:

Reviewers:

Subscribers:

Differential revision: https://reviews.llvm.org/D109824
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize-invalid.mlir
The file was modifiedmlir/include/mlir/Dialect/Linalg/Passes.td
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Commit c78ed20784ee7ffb60b0879197e34225325aafd0 by mkazantsev
[Test] Add a test showing missing opportunities in branch deletion by indvars
The file was addedllvm/test/Transforms/IndVarSimplify/outer_phi.ll
Commit 0a07789fe93d8994163798ed6d14937412274dc2 by mascasa
[HWASan] Add missing newlines.
The file was modifiedcompiler-rt/lib/hwasan/hwasan_interceptors.cpp
Commit 9111635cb78e4a134364319e2728ff8dd69d36a8 by i
[test] Fix asan/scudo -shared-libsan tests with -DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on

On x86_64-unknown-linux-gnu, `-m32` tests set LD_LIBRARY_PATH to
`config.compiler_rt_libdir` (`$build/lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu`)
instead of i386-unknown-linux-gnu, so `-shared-libsan` executables
cannot find their runtime (e.g. `TestCases/replaceable_new_delete.cpp`).

Detect -m32 and -m64 in config.target_cflags, and adjust `config.compiler_rt_libdir`.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D108859
The file was modifiedcompiler-rt/test/lit.common.cfg.py