mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Prevent extra calls to ToggleFeature for Feature64Bit and FeatureCMOV if they've already been enabled. The extra call ends up clearing the bit in FeatureBits since its a 'toggle'. Can't prove that anything was broken because of this since I don't think the FeatureBits for these are used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
773c07606e
commit
4284855391
@ -440,8 +440,8 @@ void X86Subtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
|
|||||||
|
|
||||||
// Make sure 64-bit features are available in 64-bit mode.
|
// Make sure 64-bit features are available in 64-bit mode.
|
||||||
if (In64BitMode) {
|
if (In64BitMode) {
|
||||||
HasX86_64 = true; ToggleFeature(X86::Feature64Bit);
|
if (!HasX86_64) { HasX86_64 = true; ToggleFeature(X86::Feature64Bit); }
|
||||||
HasCMov = true; ToggleFeature(X86::FeatureCMOV);
|
if (!HasCMov) { HasCMov = true; ToggleFeature(X86::FeatureCMOV); }
|
||||||
|
|
||||||
if (X86SSELevel < SSE2) {
|
if (X86SSELevel < SSE2) {
|
||||||
X86SSELevel = SSE2;
|
X86SSELevel = SSE2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user