SuccessChanges

Summary

  1. [AArch64] Add -mmark-bti-property flag. (details)
  2. [gn build] (manually) port 1321160a2 (details)
  3. [EarlyCSE] Simplify max/min pattern matching. NFC. (details)
  4. [Flang] Fixed installation permission of the "binary" flang (details)
  5. Commenting out atomics with padding to unbreak MSAN tests (details)
  6. Revert "[AArch64] Add -mmark-bti-property flag." (details)
  7. [AArch64] Add -mmark-bti-property flag. (details)
  8. [DAGCombiner] Teach visitMSTORE to replace an all ones mask with an unmasked store. (details)
  9. [MemorySSA] Rename uses in blocks with Phis. (details)
Commit 95e43f84b7b9c61011aece7583c0367297dd67d8 by daniel.kiss
[AArch64] Add -mmark-bti-property flag.

Writing the .note.gnu.property manually is error prone and hard to
maintain in the assembly files.
The -mmark-bti-property is for the assembler to emit the section with the
GNU_PROPERTY_AARCH64_FEATURE_1_BTI. To be used when C/C++ is compiled
with -mbranch-protection=bti.

This patch refactors the .note.gnu.property handling.

Reviewed By: chill, nickdesaulniers

Differential Revision: https://reviews.llvm.org/D81930
The file was modifiedllvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
The file was modifiedclang/include/clang/Driver/Options.td
The file was addedclang/test/Driver/arm64-markbti.S
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
Commit 0c6a56e41dbeb9ffc47ca0b03357f15cb5d30689 by thakis
[gn build] (manually) port 1321160a2
The file was modifiedllvm/utils/gn/secondary/llvm/test/BUILD.gn
Commit 4e4c89b22c3fc1200ee0d6d1074173c7c53d87bc by michael.hliao
[EarlyCSE] Simplify max/min pattern matching. NFC.
The file was modifiedllvm/lib/Transforms/Scalar/EarlyCSE.cpp
Commit d89c5ae8577264f5dd660906f12577c5fdadf49e by tianshilei1992
[Flang] Fixed installation permission of the "binary" flang

Under current configuration, the permission of `flang` after installation is 700.
This could bring a problem for system administrators who build and install flang
for other users, which only the user who builds LLVM can execute it, and others
can not. In this patch, the explicit permission setting in the `install` command
is removed, and let CMake determine what perssion to be used like other components.

Reviewed By: DavidTruby

Differential Revision: https://reviews.llvm.org/D87783
The file was modifiedflang/tools/f18/CMakeLists.txt
Commit 5b205ff474120e086435724dc04f784b784fdd1a by ogiroux
Commenting out atomics with padding to unbreak MSAN tests
The file was modifiedlibcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/atomic_helpers.h
Commit 60e244f82c1f97c1b7d65c06d2b0b4f634f8d696 by daniel.kiss
Revert "[AArch64] Add -mmark-bti-property flag."

This reverts commit 95e43f84b7b9c61011aece7583c0367297dd67d8.
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was removedclang/test/Driver/arm64-markbti.S
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
Commit f70baaf71f62ba8623b3522345527271add74f6b by daniel.kiss
[AArch64] Add -mmark-bti-property flag.

Writing the .note.gnu.property manually is error prone and hard to
maintain in the assembly files.
The -mmark-bti-property is for the assembler to emit the section with the
GNU_PROPERTY_AARCH64_FEATURE_1_BTI. To be used when C/C++ is compiled
with -mbranch-protection=bti.

This patch refactors the .note.gnu.property handling.

Reviewed By: chill, nickdesaulniers

Differential Revision: https://reviews.llvm.org/D81930

Reland with test dependency on aarch64 target.
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
The file was modifiedllvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
The file was modifiedllvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was addedclang/test/Driver/arm64-markbti.S
The file was modifiedclang/include/clang/Driver/Options.td
Commit e30371d99d5157ac9718c803dd1101f9cbb1b224 by craig.topper
[DAGCombiner] Teach visitMSTORE to replace an all ones mask with an unmasked store.

Similar to what done in D87788 for MLOAD.

Again I've skipped indexed, truncating, and compressing stores.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
The file was modifiedllvm/test/CodeGen/X86/masked_store.ll
Commit 344a3d0bc0fb0868b519c3342b4982d6121eece3 by asbirlea
[MemorySSA] Rename uses in blocks with Phis.

Renaming should include blocks with existing Phis.

Resolves PR45927.

Differential Revision: https://reviews.llvm.org/D87661
The file was addedllvm/test/Analysis/MemorySSA/pr45927.ll
The file was modifiedllvm/lib/Analysis/MemorySSAUpdater.cpp