SuccessChanges

Summary

  1. [libc++] Clean up scripts to setup CI on macOS (details)
  2. [libc++abi] NFC: avoid a -Wunused-parameter warning (details)
  3. [AMDGPU] Limit runs of fixLdsBranchVmemWARHazard (details)
  4. [mlir][Linalg] Make printer/parser have the same behavior. (details)
  5. Adding some of the documents for C11. (details)
  6. [TLI] SimplifyDemandedVectorElts(): handle SCALAR_TO_VECTOR(EXTRACT_VECTOR_ELT(?, 0)) (details)
  7. [dfsan] Add stack-trace printing functions to dfsan interface (details)
  8. Allow signposts to take advantage of deferred string substitution (details)
  9. [HWASan] Enable globals support for LAM. (details)
  10. [libc] Add hardware implementations of x86_64 sqrt functions. (details)
  11. [Hexagon] Add HVX and control register names to Hexagon target (details)
  12. Revert "Allow signposts to take advantage of deferred string substitution" (details)
Commit d9d20802d0ce757d4b33d6bd67d700e3272bc8b6 by Louis Dionne
[libc++] Clean up scripts to setup CI on macOS
The file was modifiedlibcxx/utils/ci/macos-ci-setup
The file was modifiedlibcxx/docs/AddingNewCIJobs.rst
The file was removedlibcxx/utils/ci/secrets.env
Commit ecb68f1c8b11b54dc8c48af9f5fe28c261090aba by xingxue
[libc++abi] NFC: avoid a -Wunused-parameter warning

Summary:
A -Wunused-parameter warning was introduced by patch rG7f0244afa828 [libc++abi] NFC: adding a new parameter base to functions for calculating… (authored by xingxue). The unused parameter base will be used in a follow-on patch D101298. This patch is to avoid the warning before D101298 is landed.

Reviewers: ldionne, sfertile, compnerd, libc++abi

Reviewed by: ldionne

Differential Revision: https://reviews.llvm.org/D104235
The file was modifiedlibcxxabi/src/cxa_personality.cpp
Commit e0c382a9d5a0e2689b97186736ebc82e17c5f822 by Piotr Sobczak
[AMDGPU] Limit runs of fixLdsBranchVmemWARHazard

The code in fixLdsBranchVmemWARHazard looks for patterns of a vmem/lds
access followed by a branch, followed by an lds/vmem access.

The handling of the hazard requires an arbitrary number of instructions
to process. In the worst case where a function has a vmem access, but no lds
accesses, all instructions are examined only to conclude that the hazard
cannot occur.

Add the pre-processing stage which detects if there is both lds and vmem
present in the function and only then does the more costly search.

This patch significantly improves compilation time in the cases the hazard
cannot happen. In one pathological case I looked at IsHazardInst is needlesly
called 88.6 milions times.

The numbers could also be improved by introducing a map around the
inner calls to ::getWaitStatesSince in fixLdsBranchVmemWARHazard, but
nothing will beat not running fixLdsBranchVmemWARHazard at all in the cases
detected by shouldRunLdsBranchVmemWARHazardFixup().

Differential Revision: https://reviews.llvm.org/D104219
The file was modifiedllvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
The file was modifiedllvm/lib/Target/AMDGPU/GCNHazardRecognizer.h
Commit e3bc4dbe8e75faf13798028fcb7710675d8c05ed by hanchung
[mlir][Linalg] Make printer/parser have the same behavior.

The parser of generic op did not recognize the output from mlir-opt when there
are multiple outputs. One would wrap the result types with braces, and one would
not. The patch makes the behavior the same.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D104256
The file was modifiedmlir/test/Dialect/Linalg/vectorization.mlir
The file was modifiedmlir/test/Dialect/Linalg/invalid.mlir
The file was modifiedmlir/test/Dialect/Linalg/roundtrip.mlir
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
The file was modifiedmlir/test/Dialect/Linalg/canonicalize.mlir
The file was modifiedmlir/test/Dialect/Linalg/bufferize.mlir
Commit 00dbf8c83218829633b9f2ec1ee94a1f3b8dd29c by aaron
Adding some of the documents for C11.

This is not the complete set of language-related documents for C11, but
is about 75% complete.
The file was modifiedclang/www/c_status.html
Commit 585e65d3307f5f081b32b21421f2a0b84eccd1b5 by lebedev.ri
[TLI] SimplifyDemandedVectorElts(): handle SCALAR_TO_VECTOR(EXTRACT_VECTOR_ELT(?, 0))

Iff we have `SCALAR_TO_VECTOR` (and we demand it's only defined 0'th element),
and said scalar was produced by `EXTRACT_VECTOR_ELT` from the 0'th element
of some vector, then we can just continue traversal into said source vector.

This comes up in X86 vector uniform shift lowering.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D104250
The file was modifiedllvm/test/CodeGen/X86/vector-fshr-512.ll
The file was modifiedllvm/test/CodeGen/X86/vector-fshr-rot-256.ll
The file was modifiedllvm/test/CodeGen/X86/vector-fshl-rot-256.ll
The file was modifiedllvm/test/CodeGen/X86/vector-rotate-256.ll
The file was modifiedllvm/test/CodeGen/X86/vector-fshl-512.ll
The file was modifiedllvm/test/CodeGen/X86/vector-fshl-rot-512.ll
The file was modifiedllvm/test/CodeGen/X86/vector-fshl-256.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/vector-fshr-rot-512.ll
The file was modifiedllvm/test/CodeGen/X86/vector-fshr-256.ll
Commit 98504959a6f114866cbf523e44d2f45e755626d5 by gbalats
[dfsan] Add stack-trace printing functions to dfsan interface

Reviewed By: stephan.yichao.zhao

Differential Revision: https://reviews.llvm.org/D104165
The file was addedcompiler-rt/test/dfsan/stack_trace.c
The file was modifiedcompiler-rt/include/sanitizer/dfsan_interface.h
The file was modifiedcompiler-rt/lib/dfsan/done_abilist.txt
The file was modifiedcompiler-rt/lib/dfsan/dfsan.cpp
Commit 03841edde7eee21d1d450041ab9a113a7e1be869 by Adrian Prantl
Allow signposts to take advantage of deferred string substitution

One nice feature of the os_signpost API is that format string
substitutions happen in the consumer, not the logging
application. LLVM's current Signpost class doesn't take advantage of
this though and instead always uses a static "Begin/End %s" format
string.

This patch uses variadic macros to allow the API to be used as
intended. Unfortunately, the primary use-case I had in mind (the
LLDB_SCOPED_TIMER() macro) does not get much better from this, because
__PRETTY_FUNCTION__ is *not* a macro, but a static string, so
signposts created by LLDB_SCOPED_TIMER() still use a static "%s"
format string. At least LLDB_SCOPED_TIMERF() works as intended.

This reapplies the previsously reverted patch with additional MachO.h
macro #undefs.

Differential Revision: https://reviews.llvm.org/D103575
The file was modifiedlldb/include/lldb/Utility/Timer.h
The file was modifiedllvm/lib/Support/Timer.cpp
The file was modifiedllvm/lib/Support/Signposts.cpp
The file was modifiedlldb/source/Utility/Timer.cpp
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
The file was modifiedllvm/include/llvm/Support/Signposts.h
Commit b87894a1d28f3819e38c11ce1fdf05113ac5ca34 by mascasa
[HWASan] Enable globals support for LAM.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D104265
The file was addedllvm/test/Instrumentation/HWAddressSanitizer/X86/globals.ll
The file was modifiedllvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/global.c
Commit a58b2827feceaa27193318a12e3a06893eabdcb6 by sivachandra
[libc] Add hardware implementations of x86_64 sqrt functions.
The file was modifiedlibc/src/math/x86_64/CMakeLists.txt
The file was addedlibc/src/math/x86_64/sqrt.cpp
The file was addedlibc/src/math/x86_64/sqrtf.cpp
The file was addedlibc/src/math/x86_64/sqrtl.cpp
Commit 0577f4b1789eff410f5b28434a4f7854a50dc639 by kparzysz
[Hexagon] Add HVX and control register names to Hexagon target
The file was addedclang/test/CodeGen/hexagon-inline-asm-reg-names.c
The file was modifiedclang/lib/Basic/Targets/Hexagon.cpp
Commit 7a7c00761f6294dc21c40cbe1737354e655cda9b by Adrian Prantl
Revert "Allow signposts to take advantage of deferred string substitution"

This reverts commit 03841edde7eee21d1d450041ab9a113a7e1be869.

Unfortunately this still breaks the LLDB standalone bot.
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
The file was modifiedllvm/lib/Support/Timer.cpp
The file was modifiedllvm/include/llvm/Support/Signposts.h
The file was modifiedllvm/lib/Support/Signposts.cpp
The file was modifiedlldb/source/Utility/Timer.cpp
The file was modifiedlldb/include/lldb/Utility/Timer.h