mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +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:
parent
f931f3a4d1
commit
becab37ab8
@ -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)
|
||||
PostRAScheduler = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user