Only enforce SSSE3 (with -O) for LLVM 7.x (#3045)

Looks like that regression has been fixed for LLVM 8.
This commit is contained in:
Martin Kinkelin 2019-04-03 20:26:30 +02:00 committed by GitHub
parent 8f81d0797b
commit c81a0c94e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -402,8 +402,8 @@ createTargetMachine(const std::string targetTriple, const std::string arch,
features.push_back("+cx16");
}
#if LDC_LLVM_VER >= 700
// FIXME: https://bugs.llvm.org/show_bug.cgi?id=38289
#if LDC_LLVM_VER >= 700 && LDC_LLVM_VER < 800
// https://bugs.llvm.org/show_bug.cgi?id=38289
if (isOptimizationEnabled() && (cpu == "x86-64" || cpu == "i686") &&
!hasFeature("ssse3")) {
features.push_back("+ssse3");