projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[X86][Haswell][SchedModel] Add architecture specific scheduling models.
[oota-llvm.git]
/
lib
/
CodeGen
/
BasicTargetTransformInfo.cpp
diff --git
a/lib/CodeGen/BasicTargetTransformInfo.cpp
b/lib/CodeGen/BasicTargetTransformInfo.cpp
index d639101dd9cb05393f4259db4d75c3de019185bc..24bc570f44a1fcb25010a4b126c486ce350aa292 100644
(file)
--- a/
lib/CodeGen/BasicTargetTransformInfo.cpp
+++ b/
lib/CodeGen/BasicTargetTransformInfo.cpp
@@
-42,7
+42,9
@@
class BasicTTI final : public ImmutablePass, public TargetTransformInfo {
/// Estimate the cost overhead of SK_Alternate shuffle.
unsigned getAltShuffleOverhead(Type *Ty) const;
/// Estimate the cost overhead of SK_Alternate shuffle.
unsigned getAltShuffleOverhead(Type *Ty) const;
- const TargetLoweringBase *getTLI() const { return TM->getTargetLowering(); }
+ const TargetLoweringBase *getTLI() const {
+ return TM->getSubtargetImpl()->getTargetLowering();
+ }
public:
BasicTTI() : ImmutablePass(ID), TM(nullptr) {
public:
BasicTTI() : ImmutablePass(ID), TM(nullptr) {