SuccessChanges

Summary

  1. [Driver] Default to -momit-leaf-frame-pointer for AArch64 (details)
  2. [AArch64] Save FP for leaf functions when disabling frame pointer (details)
  3. [clang] Move CLANG_BOOTSTRAP_CMAKE_ARGS above PASSTHROUGH_VARIABLES (details)
Commit 074323c84658e51522e7d8d3d0179e53004b219c by maskray
[Driver] Default to -momit-leaf-frame-pointer for AArch64
This matches https://gcc.gnu.org/onlinedocs/gcc/AArch64-Options.html
> -momit-leaf-frame-pointer
> -mno-omit-leaf-frame-pointer
>
>   Omit or keep the frame pointer in leaf functions. The former
behavior is the default.
-mno-omit-leaf-frame-pointer is currently a no-op because
TargetOptions::DisableFramePointerElim is only considered for non-leaf
functions.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D71167
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/test/Driver/cl-options.c
The file was modifiedclang/test/Driver/frame-pointer-elim.c
Commit a0aa58dad53f2e5e90a9b7079ec31bf7c3144fc7 by maskray
[AArch64] Save FP for leaf functions when disabling frame pointer
elimination
The change allows clang -mno-omit-leaf-frame-pointer to disable frame
pointer elimination. This behavior matches X86 and Mips, and also GCC
AArch64.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D71168
The file was modifiedllvm/test/CodeGen/AArch64/arm64_32.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64FrameLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/machine-outliner.mir
The file was modifiedllvm/test/DebugInfo/AArch64/line-header.ll
The file was modifiedllvm/test/CodeGen/AArch64/machine-outliner-regsave.mir
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/tail-call-no-save-fp-lr.ll
The file was modifiedllvm/test/CodeGen/AArch64/aarch64-fix-cortex-a53-835769.ll
The file was modifiedllvm/test/CodeGen/AArch64/arm64-shrink-wrapping.ll
The file was modifiedllvm/test/CodeGen/AArch64/fastcc.ll
The file was modifiedllvm/test/CodeGen/AArch64/f16-instructions.ll
The file was modifiedllvm/test/CodeGen/AArch64/arm64-large-frame.ll
Commit 61c8ee6a2fa490bc224d006cd03efd650f6561bb by smeenai
[clang] Move CLANG_BOOTSTRAP_CMAKE_ARGS above PASSTHROUGH_VARIABLES
I want to pass some CMake cache files in CLANG_BOOTSTRAP_CMAKE_ARGS as
`-C <cache file>.cmake` arguments. I want to be able to use the values
of the bootstrap passthrough variables in the cache files, so the cache
file arguments need to be after passthrough variables. This should be
safe because the values of passthrough variables are all constants and
can't refer to values in CLANG_BOOTSTRAP_CMAKE_ARGS.
Differential Revision: https://reviews.llvm.org/D71428
The file was modifiedclang/CMakeLists.txt