SuccessChanges

Summary

  1. GetMacosAlignedVersion() fails if sysctl is not setup (details)
  2. Fix libc++ clang-cl build, swap attribute order (details)
  3. [CodeGen] Removes unwanted optimisation for TargetConstantFP (details)
  4. [SLP] remove unused reduction functions; NFC (details)
Commit 84de4faf4cae2885056c608db8256e9f039050b3 by julian.lettner
GetMacosAlignedVersion() fails if sysctl is not setup

`GetMacosAlignedVersion()` fails for ASan-ified launchd because the
sanitizer initialization code runs before `sysctl` has been setup by
launchd.  In this situation, `sysctl kern.osproductversion` returns a
non-empty string that does not match our expectations of a
well-formatted version string.

Retrieving the kernel version (via `sysctl kern.osrelease`) still works,
so we can use it to add a fallback for this corner case.

Differential Revision: https://reviews.llvm.org/D94190
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
Commit 4f24d0dd5386cc0ff61be23062b89855da87094b by rnk
Fix libc++ clang-cl build, swap attribute order

Clang insists that __attribute__ attributes precede __declspec
attributes. This is a longstanding known issue:
https://llvm.org/pr24559. Re-order the visibility and deprecation macros
to fix the build.

Differential Revision: https://reviews.llvm.org/D94788
The file was modifiedlibcxx/include/__locale
The file was modifiedlibcxx/src/locale.cpp
Commit a9e939760c6f21476109559cc3e21779bddddaff by craig.topper
[CodeGen] Removes unwanted optimisation for TargetConstantFP

This 'FIXME' popped up in the development of an out-of-tree backend.
Quick fix, but first llvm upstream patch, therefore I do not have commit rights, so if approved please commit?

- Test is not included as this came up in an out-of-tree backend (if required, please hint on how to test this).

Patch by simveg (Simon)

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D93219
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Commit 1f21de535d37997c41b9b1ecb2f7ca0e472e9f77 by spatel
[SLP] remove unused reduction functions; NFC

These were made obsolete by simplifying the code in recent patches.
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp