Revert "clang-misexpect: Profile Guided Validation of Performance Annotations in...
authorDmitri Gribenko <gribozavr@gmail.com>
Wed, 11 Sep 2019 09:16:17 +0000 (09:16 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Wed, 11 Sep 2019 09:16:17 +0000 (09:16 +0000)
commit57256af307ab7bdf42c47da019a1a288b9f9451a
tree27b79009fe825ffd54dd574662213f2d659f35fd
parent73ec745793acdddc505610ae6a1087ada3140ef2
Revert "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM"

This reverts commit r371584. It introduced a dependency from compiler-rt
to llvm/include/ADT, which is problematic for multiple reasons.

One is that it is a novel dependency edge, which needs cross-compliation
machinery for llvm/include/ADT (yes, it is true that right now
compiler-rt included only header-only libraries, however, if we allow
compiler-rt to depend on anything from ADT, other libraries will
eventually get used).

Secondly, depending on ADT from compiler-rt exposes ADT symbols from
compiler-rt, which would cause ODR violations when Clang is built with
the profile library.

llvm-svn: 371598
43 files changed:
clang/include/clang/Basic/DiagnosticFrontendKinds.td
clang/include/clang/Basic/DiagnosticGroups.td
clang/lib/CodeGen/CodeGenAction.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Profile/Inputs/misexpect-branch-nonconst-expect-arg.proftext [deleted file]
clang/test/Profile/Inputs/misexpect-branch.proftext [deleted file]
clang/test/Profile/Inputs/misexpect-switch-default-only.proftext [deleted file]
clang/test/Profile/Inputs/misexpect-switch-default.proftext [deleted file]
clang/test/Profile/Inputs/misexpect-switch-nonconst.proftext [deleted file]
clang/test/Profile/Inputs/misexpect-switch.proftext [deleted file]
clang/test/Profile/misexpect-branch-cold.c [deleted file]
clang/test/Profile/misexpect-branch-nonconst-expected-val.c [deleted file]
clang/test/Profile/misexpect-branch-unpredictable.c [deleted file]
clang/test/Profile/misexpect-branch.c [deleted file]
clang/test/Profile/misexpect-switch-default.c [deleted file]
clang/test/Profile/misexpect-switch-nonconst.c [deleted file]
clang/test/Profile/misexpect-switch-only-default-case.c [deleted file]
clang/test/Profile/misexpect-switch.c [deleted file]
compiler-rt/lib/profile/xxhash.c [deleted file]
compiler-rt/lib/profile/xxhash.h [deleted file]
llvm/include/llvm/IR/DiagnosticInfo.h
llvm/include/llvm/IR/FixedMetadataKinds.def
llvm/include/llvm/IR/MDBuilder.h
llvm/include/llvm/Transforms/Utils/MisExpect.h [deleted file]
llvm/lib/IR/DiagnosticInfo.cpp
llvm/lib/IR/MDBuilder.cpp
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
llvm/lib/Transforms/Utils/CMakeLists.txt
llvm/lib/Transforms/Utils/MisExpect.cpp [deleted file]
llvm/test/ThinLTO/X86/lazyload_metadata.ll
llvm/test/Transforms/LowerExpectIntrinsic/basic.ll
llvm/test/Transforms/PGOProfile/Inputs/misexpect-branch-correct.proftext [deleted file]
llvm/test/Transforms/PGOProfile/Inputs/misexpect-branch.proftext [deleted file]
llvm/test/Transforms/PGOProfile/Inputs/misexpect-switch-correct.proftext [deleted file]
llvm/test/Transforms/PGOProfile/Inputs/misexpect-switch.proftext [deleted file]
llvm/test/Transforms/PGOProfile/misexpect-branch-correct.ll [deleted file]
llvm/test/Transforms/PGOProfile/misexpect-branch-stripped.ll [deleted file]
llvm/test/Transforms/PGOProfile/misexpect-branch-unpredictable.ll [deleted file]
llvm/test/Transforms/PGOProfile/misexpect-branch.ll [deleted file]
llvm/test/Transforms/PGOProfile/misexpect-switch-default.ll [deleted file]
llvm/test/Transforms/PGOProfile/misexpect-switch.ll [deleted file]