Reland 293e8fa13d3f05e993771577a4c022deee5cbf6e
authorVy Nguyen <vyng@google.com>
Thu, 4 Mar 2021 17:13:07 +0000 (12:13 -0500)
committerVy Nguyen <vyng@google.com>
Fri, 5 Mar 2021 18:23:42 +0000 (13:23 -0500)
commitf8b01d54c31547f3ecb25fb8a1912183026bffa7
tree5fc7960a7ffeec295ba1c46a29798c07029fa754
parenta9ccdfbc7d73d0abd2506c77efcab1153a82eb35
Reland 293e8fa13d3f05e993771577a4c022deee5cbf6e
    [llvm-exegesis] Disable the LBR check on AMD

    https://bugs.llvm.org/show_bug.cgi?id=48918

    The bug reported a hang (or very very slow runtime) on a Zen2. Unfortunately, we don't have the hardware right now to debug it and I was not able to reproduce the bug on a HSW.
    Theory we've got is that the lbr-checking code could be confused on AMD.

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

New change:
 - Surround usages of x86 helper in llvm-exegesis/X86/Target.cpp with ifdef
 - Fix bug which caused the caller of getVendorSignature to not have a copy of EAX that it expected.
llvm/include/llvm/Support/Host.h
llvm/lib/Support/Host.cpp
llvm/tools/llvm-exegesis/lib/X86/Target.cpp