MC: Remove MCSubtargetInfo::InitCPUSched()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 10 Jul 2015 22:33:01 +0000 (22:33 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 10 Jul 2015 22:33:01 +0000 (22:33 +0000)
commit5733fd14d45a27af5f5f45a568187bed78a35875
tree7aaae452cfcfb115dfafd5267aa117c73f708ea3
parentca7473f5d05ef9f447cfe1c5e8c821de2d07e46c
MC: Remove MCSubtargetInfo::InitCPUSched()

Remove all calls to `MCSubtargetInfo::InitCPUSched()` and merge its body
into the only relevant caller, `MCSubtargetInfo::InitMCProcessorInfo()`.
We were only calling the former after explicitly calling the latter with
the same CPU; it's confusing to have both methods exposed.

Besides a minor (surely unmeasurable) speedup in ARM and X86 from
avoiding running the logic twice, no functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241956 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSubtargetInfo.h
lib/MC/MCSubtargetInfo.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/X86/X86Subtarget.cpp