[X86] Enabling xsave should not enable AVX. I seem to have done this, but I don't know why.

llvm-svn: 262200
This commit is contained in:
Craig Topper 2016-02-29 06:51:34 +00:00
parent 60da77e438
commit 840927e074
1 changed files with 2 additions and 6 deletions

View File

@ -3018,15 +3018,11 @@ void X86TargetInfo::setFeatureEnabledImpl(llvm::StringMap<bool> &Features,
else
setSSELevel(Features, SSE41, Enabled);
} else if (Name == "xsave") {
if (Enabled)
setSSELevel(Features, AVX, Enabled);
else
if (!Enabled)
Features["xsaveopt"] = false;
} else if (Name == "xsaveopt" || Name == "xsavec" || Name == "xsaves") {
if (Enabled) {
if (Enabled)
Features["xsave"] = true;
setSSELevel(Features, AVX, Enabled);
}
}
}