summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2014-09-02 17:43:54 +0000
committerPete Cooper <peter_cooper@apple.com>2014-09-02 17:43:54 +0000
commit11759457101688ed50ed14725c78df5406f82bd8 (patch)
tree10706fd2d622d2c0499f665cadaaee951c8d6291 /llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
parent505e1b829fd181a12ffc4b62f00cbe8d61c92c2c (diff)
downloadbcm5719-llvm-11759457101688ed50ed14725c78df5406f82bd8.tar.gz
bcm5719-llvm-11759457101688ed50ed14725c78df5406f82bd8.zip
Change MCSchedModel to be a struct of statically initialized data.
This removes static initializers from the backends which generate this data, and also makes this struct match the other Tablegen generated structs in behaviour Reviewed by Andy Trick and Chandler C llvm-svn: 216919
Diffstat (limited to 'llvm/lib/CodeGen/BasicTargetTransformInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/BasicTargetTransformInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
index 85045eaa6df..21caf051c90 100644
--- a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
+++ b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
@@ -229,8 +229,8 @@ void BasicTTI::getUnrollingPreferences(Loop *L,
const TargetSubtargetInfo *ST = &TM->getSubtarget<TargetSubtargetInfo>();
if (PartialUnrollingThreshold.getNumOccurrences() > 0)
MaxOps = PartialUnrollingThreshold;
- else if (ST->getSchedModel()->LoopMicroOpBufferSize > 0)
- MaxOps = ST->getSchedModel()->LoopMicroOpBufferSize;
+ else if (ST->getSchedModel().LoopMicroOpBufferSize > 0)
+ MaxOps = ST->getSchedModel().LoopMicroOpBufferSize;
else
return;
OpenPOWER on IntegriCloud