1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/lib
Hans Wennborg 0f6eabfeda Revert "[InstrProfiling] Don't generate __llvm_profile_runtime_user"
This broke the check-profile tests on Mac, see comment on the code
review.

> This is no longer needed, we can add __llvm_profile_runtime directly
> to llvm.compiler.used or llvm.used to achieve the same effect.
>
> Differential Revision: https://reviews.llvm.org/D98325

This reverts commit c7712087cbb505d324e1149fa224f607c91a8c6a.

Also reverting the dependent follow-up commit:

Revert "[InstrProfiling] Generate runtime hook for ELF platforms"

> When using -fprofile-list to selectively apply instrumentation only
> to certain files or functions, we may end up with a binary that doesn't
> have any counters in the case where no files were selected. However,
> because on Linux and Fuchsia, we pass -u__llvm_profile_runtime, the
> runtime would still be pulled in and incur some non-trivial overhead,
> especially in the case when the continuous or runtime counter relocation
> mode is being used. A better way would be to pull in the profile runtime
> only when needed by declaring the __llvm_profile_runtime symbol in the
> translation unit only when needed.
>
> This approach was already used prior to 9a041a75221ca, but we changed it
> to always generate the __llvm_profile_runtime due to a TAPI limitation.
> Since TAPI is only used on Mach-O platforms, we could use the early
> emission of __llvm_profile_runtime there, and on other platforms we
> could change back to the earlier approach where the symbol is generated
> later only when needed. We can stop passing -u__llvm_profile_runtime to
> the linker on Linux and Fuchsia since the generated undefined symbol in
> each translation unit that needed it serves the same purpose.
>
> Differential Revision: https://reviews.llvm.org/D98061

This reverts commit 87fd09b25f8892e07b7ba11525baa9c3ec3e5d3f.
2021-03-12 13:53:46 +01:00
..
Analysis [InstSimplify] Simplify smul.fix and smul.fix.sat 2021-03-12 09:09:58 +01:00
AsmParser [DebugInfo] Add DIArgList MD to store multple values in DbgVariableIntrinsics 2021-03-05 17:02:24 +00:00
BinaryFormat [WebAssembly] Add new relocation for location relative data 2021-03-08 11:34:10 -08:00
Bitcode [DebugInfo] Support DIArgList in DbgVariableIntrinsic 2021-03-08 14:36:13 +00:00
Bitstream
CodeGen [SelectionDAG] Improve scalarization of irregular vector types 2021-03-11 19:57:13 +01:00
DebugInfo Re-land "[PDB] Defer relocating .debug$S until commit time and parallelize it" 2021-03-10 15:14:09 -08:00
Demangle
DWARFLinker [llvm] Add assertions for the smart pointers with the possibility to be null in DWARFLinker::loadClangModule 2021-02-27 10:14:39 +03:00
ExecutionEngine [RuntimeDyld] Speedup resolution of relocations to external symbols 2021-03-11 16:58:49 -08:00
Extensions
FileCheck [FileCheck] Fix naming of OverflowErrorStr var 2021-03-11 10:31:04 +00:00
Frontend Revert "[OpenMP] Do not propagate match extensions to nested contexts" 2021-03-11 23:48:36 -06:00
Fuzzer
FuzzMutate
InterfaceStub [elfabi] Fix a bug when .dynsym contains no non-local symbol 2021-02-19 11:36:53 -08:00
IR Revert "[DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands" 2021-03-11 14:48:01 +00:00
IRReader
LineEditor
Linker [llvm-link] fix IRMover returning wrong modified vector type 2021-02-22 11:29:42 +00:00
LTO llvm-lto: default Relocation Model should be selected by the TargetMachine. 2021-03-10 17:31:26 -05:00
MC [Debug-Info] Add names for the debug line prologue. 2021-03-12 04:45:08 +00:00
MCA [MCA] Support in-order CPUs with MicroOpBufferSize=1 2021-03-11 10:12:54 +00:00
Object [llvm-objcopy][NFC] replace class Buffer/MemBuffer/FileBuffer with streams. 2021-03-10 23:50:04 +03:00
ObjectYAML Read NumBlocks as uint64_t. 2021-03-08 16:46:13 -08:00
Option [clang][cli] NFC: Remove ArgList infrastructure for recording queries 2021-02-25 13:53:24 +01:00
Passes Remove original implementation of UniqueInternalLinkageNames pass. 2021-03-10 11:57:40 -08:00
ProfileData [IndirectCallPromotion] Don't strip ".__uniq." suffix when it strips 2021-03-11 11:08:47 -08:00
Remarks Add intrinsics_gen as a dependency of libRemarks 2021-03-08 14:17:27 -08:00
Support Save and restore previous terminal after setting the terminal for checking if terminal supports colors. 2021-03-11 10:47:06 +01:00
TableGen [TableGen] Use range-based for loops (NFC) 2021-03-06 15:52:55 -08:00
Target [PPC] Fix UBSAN warning about out of range shift. NFCI. 2021-03-12 12:03:48 +00:00
Testing
TextAPI [lld-macho] Change loadReexport to handle the case where a TAPI re-exports to reference documents nested within other TBD. 2021-03-02 12:14:31 -05:00
ToolDrivers
Transforms Revert "[InstrProfiling] Don't generate __llvm_profile_runtime_user" 2021-03-12 13:53:46 +01:00
WindowsManifest
XRay
CMakeLists.txt