summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-07-10 22:33:01 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-07-10 22:33:01 +0000
commitbb57d73805449f9c36de2bd14a44e8cd4ff36d4a (patch)
tree223cc575616d7c662ac3634560e29850728baa4b /llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
parenta6b929dfe2bb672b2569a8ab328da05018b884d9 (diff)
downloadbcm5719-llvm-bb57d73805449f9c36de2bd14a44e8cd4ff36d4a.tar.gz
bcm5719-llvm-bb57d73805449f9c36de2bd14a44e8cd4ff36d4a.zip
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. llvm-svn: 241956
Diffstat (limited to 'llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 88b06f7b938..074c485023a 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -9213,7 +9213,6 @@ bool ARMAsmParser::parseDirectiveCPU(SMLoc L) {
}
STI.InitMCProcessorInfo(CPU, "");
- STI.InitCPUSchedModel(CPU);
setAvailableFeatures(ComputeAvailableFeatures(STI.getFeatureBits()));
return false;
OpenPOWER on IntegriCloud