summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorChen Zheng <czhengsz@cn.ibm.com>2019-04-09 01:25:25 +0000
committerChen Zheng <czhengsz@cn.ibm.com>2019-04-09 01:25:25 +0000
commit19ce6719bc8412b15addd46dd2e12a2fe2cd07a6 (patch)
tree9a7fb501f365eb1058eaf51b4047ce471eaf936e /llvm/lib/Target/PowerPC
parent6f75a8f5d0679eed4ead6f89d8d5a17e01b1765e (diff)
downloadbcm5719-llvm-19ce6719bc8412b15addd46dd2e12a2fe2cd07a6.tar.gz
bcm5719-llvm-19ce6719bc8412b15addd46dd2e12a2fe2cd07a6.zip
[PowerPC] initialize SchedModel according to platform.
Differential Revision: https://reviews.llvm.org/D60177 llvm-svn: 357962
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCCTRLoops.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
index c52d7d83dfc..526e06aeb2a 100644
--- a/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
+++ b/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp
@@ -202,6 +202,7 @@ bool PPCCTRLoops::runOnFunction(Function &F) {
auto *TLIP = getAnalysisIfAvailable<TargetLibraryInfoWrapperPass>();
LibInfo = TLIP ? &TLIP->getTLI() : nullptr;
PreserveLCSSA = mustPreserveAnalysisID(LCSSAID);
+ SchedModel.init(STI);
bool MadeChange = false;
OpenPOWER on IntegriCloud