[llvm-commits] [llvm] r165122 - /llvm/trunk/lib/Target/X86/X86Subtarget.cpp

Preston Gurd preston.gurd at intel.com
Wed Oct 3 08:55:13 PDT 2012


Author: pgurd
Date: Wed Oct  3 10:55:13 2012
New Revision: 165122

URL: http://llvm.org/viewvc/llvm-project?rev=165122&view=rev
Log:
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.


Modified:
    llvm/trunk/lib/Target/X86/X86Subtarget.cpp

Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=165122&r1=165121&r2=165122&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Wed Oct  3 10:55:13 2012
@@ -401,6 +401,10 @@
     }
   }
 
+  // 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;
 





More information about the llvm-commits mailing list