diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2022-06-01 11:57:11 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2022-06-01 13:34:36 +0000 |
commit | b2a9ea4420127d10b18ae648b16757665f8bbd7c (patch) | |
tree | d684e6066802d5db6d97adae4328298c8b30abea /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | f951a6b2f37baf6ae832318fcca9ba4121c29529 (diff) | |
download | llvm-b2a9ea4420127d10b18ae648b16757665f8bbd7c.zip llvm-b2a9ea4420127d10b18ae648b16757665f8bbd7c.tar.gz llvm-b2a9ea4420127d10b18ae648b16757665f8bbd7c.tar.bz2 |
[libc] Apply no-builtin everywhere, remove unnecessary flags
Note, this is a re-submission of D125894 with `features = ["-header_modules"]`
added to the main BUILD.bazel file.
Some functions like `stpncpy` are implemented in terms of `memset` but are not
currently using `-fno-builtin-memset`. This is somewhat hidden by the fact that
we use `-ffreestanding` globally and that `-ffreestanding` implies
`-fno-builtin` for Clang.
This patch also removes `-mllvm -combiner-global-alias-analysis` that is Clang
specific and that does not bring substantial gains on modern processors.
Also we keep `-mllvm --tail-merge-threshold=0` for aarch64 in CMakeLists.txt
but we omit it in the Bazel config. This is because Bazel consumes the source
files directly and so it can use PGO to take optimal decisions locally.
Differential Revision: https://reviews.llvm.org/D126773
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions