SuccessChanges

Summary

  1. [libcxx] [test] Don't look for the literal spelling __mbstate_t in warnings (details)
  2. [libcxx] Define LIBCPP_HAS_TIMESPEC_GET for MSVC configurations (details)
  3. [libcxx] [test] Remove an incorrect TEST_HAS_ALIGNED_ALLOC define from test_macros.h (details)
  4. [libcxx] [test] Fix the include_as_c.sh.cpp test in MSVC configurations (details)
  5. [LoopDeletion] Add additional test cases with more nested loops. (details)
  6. [LoopInterhcange] Handle movement of reduction phis appropriately (details)
  7. [HIP] Relax checks in hip-include-path.hip test case again (details)
  8. [PowerPC] Improve f32 to i32 bitcast code gen (details)
Commit b48a256e9c6e300f9f3f20180db369b9e7e27250 by martin
[libcxx] [test] Don't look for the literal spelling __mbstate_t in warnings

While the code uses the type name `std::mbstate_t`, the warning message
mentions the original underlying type, which is a C library internal
type name.

On Windows this type is called `_Mbstatet` instead of `__mbstate_t`. Use
expect-warning-re to avoid spelling out the literal name of the type.

Due to issues with the detection of the clang-verify feature, these
tests have been skipped in the Windows CI configuration so far.

Differential Revision: https://reviews.llvm.org/D103309
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char16_t_char.depr_in_cxx20.verify.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char32_t_char.depr_in_cxx20.verify.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/codecvt_byname_char32_t_char.depr_in_cxx20.verify.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/codecvt_char16_t_char.depr_in_cxx20.verify.cpp
Commit c8644ae1e98c38e44460f50cf9eeba979b32a7e6 by martin
[libcxx] Define LIBCPP_HAS_TIMESPEC_GET for MSVC configurations

This define was out of sync with the corresponding define in tests, it
was added inconsistently in 171c77b7dad4a050aca23ff7ca1b75f87560fefb.

Modern MSVC environments do have these typedefs and functions.

Differential Revision: https://reviews.llvm.org/D103398
The file was modifiedlibcxx/test/libcxx/language.support/has_timespec_get.compile.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.runtime/ctime.pass.cpp
The file was modifiedlibcxx/test/std/utilities/time/date.time/ctime.pass.cpp
The file was modifiedlibcxx/include/__config
Commit be34d5f74afe8347b8b6110cb209186caf07e16b by martin
[libcxx] [test] Remove an incorrect TEST_HAS_ALIGNED_ALLOC define from test_macros.h

This was added inconsistently in
19fd9039ca242f408493b5c662f9d908eab8555e; Windows doesn't have the
aligned_alloc function (neither MSVC nor MinGW toolchains) and we don't
define _LIBCPP_HAS_ALIGNED_ALLOC while building libcxx.

Differential Revision: https://reviews.llvm.org/D103399
The file was modifiedlibcxx/test/libcxx/language.support/has_aligned_alloc.compile.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp
The file was modifiedlibcxx/test/support/test_macros.h
The file was modifiedlibcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp
Commit 23f7f56cecf9015f5fbee5b502430fd6985d269a by martin
[libcxx] [test] Fix the include_as_c.sh.cpp test in MSVC configurations

Avoid including a header that is known not to work with clang in MSVC
mode when compiling as C.

(Alternatively, this could be something like "XFAIL: clang && msvc",
but I think it's more useful to actually check the rest of the test
instead of expecting the whole test to fail.)

Differential Revision: https://reviews.llvm.org/D103400
The file was modifiedlibcxx/test/libcxx/include_as_c.sh.cpp
Commit 5c9fe816e3b6b9cdbf75758f2744a45f97c489f0 by flo
[LoopDeletion] Add additional test cases with more nested loops.

Also remove mustprogress function attribute from one of the tests

Extends test coverage for D103382.
The file was modifiedllvm/test/Transforms/LoopDeletion/noop-loops-with-subloops.ll
Commit bfefde22b670359eddd7843573b63dc4326f33c1 by congzhecao
[LoopInterhcange] Handle movement of reduction phis appropriately

This patch fixes pr43326 and pr48212.

Currently when we move reduction phis to the right place,
loop interchange assumes the first phi in loop headers is
an induction phi, skips the first phi and assumes the rest
of phis are candidate reduction phis to move. However, it
may not always be the case.

This patch loops over all phis in loop headers and considers
a phi node as a candidate reduction phi to move only when it
is indeed a reduction phi across outer and inner loop.

Reviewed By: Whitney

Differential Revision: https://reviews.llvm.org/D102743
The file was modifiedllvm/lib/Transforms/Scalar/LoopInterchange.cpp
The file was addedllvm/test/Transforms/LoopInterchange/pr43326.ll
The file was addedllvm/test/Transforms/LoopInterchange/pr48212.ll
Commit f0e10cc91bc40fb5c0698846f0a324d4658f54c7 by bjorn.a.pettersson
[HIP] Relax checks in hip-include-path.hip test case again

The tightened checks from commit 722c39fef5ab6 did not work
fully for buildbots using symlinks in repo paths. This patch
is not fully reverting 722c39fef5ab6, as we still match that
there is a "/lib" somewhere in the path before "/clang/".

So this is once again a bit fragile in case someone would put
their repo in a base directory, for example, named
"/scratch/lib/foo/clang/llvm-project/". But it is atleast a
bit better than the original checks (avoiding the problem that
commit 722c39fef5ab6 was solving).
The file was modifiedclang/test/Driver/hip-include-path.hip
Commit db26cd30b6dd65e88d786e97a1e453af5cd48966 by albionapc
[PowerPC] Improve f32 to i32 bitcast code gen

The code gen for f32 to i32 bitcast is not currently the most efficient;
this patch removes some unneccessary instructions gerneated.

Differential revision: https://reviews.llvm.org/D100782
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrVSX.td
The file was modifiedllvm/test/CodeGen/PowerPC/aix-p9-xxinsertw-xxextractuw.ll
The file was modifiedllvm/test/CodeGen/PowerPC/vec_insert_elt.ll
The file was modifiedllvm/test/CodeGen/PowerPC/bitcasts-direct-move.ll
The file was modifiedllvm/test/CodeGen/PowerPC/scalar_vector_test_4.ll
The file was modifiedllvm/test/CodeGen/PowerPC/p9-xxinsertw-xxextractuw.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-vec_insert_elt.ll