1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Set up MCSchedModel after detecting the CPU type in X86SubTarget.

Corrects a problem whereby MCSchedModel was not being set up when
the CPU type was auto-detected.

Patch by Andy Zhang.

llvm-svn: 165122
This commit is contained in:
Preston Gurd 2012-10-03 15:55:13 +00:00
parent f931f3a4d1
commit becab37ab8

View File

@ -401,6 +401,10 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &CPU,
} }
} }
// CPUName may have been set by the CPU detection code. Make sure the
// new MCSchedModel is used.
InitMCProcessorInfo(CPUName, FS);
if (X86ProcFamily == IntelAtom) if (X86ProcFamily == IntelAtom)
PostRAScheduler = true; PostRAScheduler = true;