diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-01-27 07:54:39 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-01-27 07:54:39 +0000 |
| commit | 2c63549386132e0d23b1cb00b40e198584f94352 (patch) | |
| tree | 7eb1ee7c2099e745548539de3395027a67e6353b /llvm/lib/CodeGen/BasicTargetTransformInfo.cpp | |
| parent | 36d927312841af04194c86ecccce3816a6773d93 (diff) | |
| download | bcm5719-llvm-2c63549386132e0d23b1cb00b40e198584f94352.tar.gz bcm5719-llvm-2c63549386132e0d23b1cb00b40e198584f94352.zip | |
Update a few calls to getSubtarget<> to either be getSubtargetImpl
when we didn't need the cast to the base class or the cached version
off of the subtarget.
llvm-svn: 227176
Diffstat (limited to 'llvm/lib/CodeGen/BasicTargetTransformInfo.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/BasicTargetTransformInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp index 4e962b469fb..143ccf05345 100644 --- a/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp +++ b/llvm/lib/CodeGen/BasicTargetTransformInfo.cpp @@ -225,7 +225,7 @@ void BasicTTI::getUnrollingPreferences(const Function *F, Loop *L, // until someone finds a case where it matters in practice. unsigned MaxOps; - const TargetSubtargetInfo *ST = &TM->getSubtarget<TargetSubtargetInfo>(F); + const TargetSubtargetInfo *ST = TM->getSubtargetImpl(F); if (PartialUnrollingThreshold.getNumOccurrences() > 0) MaxOps = PartialUnrollingThreshold; else if (ST->getSchedModel().LoopMicroOpBufferSize > 0) |

