diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-09-18 05:54:09 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-09-18 05:54:09 +0000 |
commit | 773c07606e61c5090d73ea1317a0d1b0c29ec023 (patch) | |
tree | c3225eeee5b77c11f5bd8ab6c3f50c77b8e5a7f6 /lib/Target/X86/X86Subtarget.cpp | |
parent | b8f54d86f28f84103a5e8dff5d3f3a3b493aaaa7 (diff) | |
download | external_llvm-773c07606e61c5090d73ea1317a0d1b0c29ec023.zip external_llvm-773c07606e61c5090d73ea1317a0d1b0c29ec023.tar.gz external_llvm-773c07606e61c5090d73ea1317a0d1b0c29ec023.tar.bz2 |
Fix X86 subtarget to not overwrite the autodetected features by calling InitMCProcessorInfo right after detecting them. Instead add a new function that only updates the scheduling model and call that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 78c9a1a..ae31bb8 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -453,7 +453,7 @@ void X86Subtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) { // CPUName may have been set by the CPU detection code. Make sure the // new MCSchedModel is used. - InitMCProcessorInfo(CPUName, FS); + InitCPUSchedModel(CPUName); if (X86ProcFamily == IntelAtom || X86ProcFamily == IntelSLM) PostRAScheduler = true; |