forked from OSchip/llvm-project
[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:
parent
60da77e438
commit
840927e074
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue