projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[multiversion] Thread a function argument through all the callers of the
[oota-llvm.git]
/
lib
/
Analysis
/
CostModel.cpp
diff --git
a/lib/Analysis/CostModel.cpp
b/lib/Analysis/CostModel.cpp
index 7b5dfa2c7c8c91f31635116bcbc547275e7d4400..b529c1a70aa3374ae0d40ff86f90c83872e2dc62 100644
(file)
--- a/
lib/Analysis/CostModel.cpp
+++ b/
lib/Analysis/CostModel.cpp
@@
-84,7
+84,7
@@
bool
CostModelAnalysis::runOnFunction(Function &F) {
this->F = &F;
auto *TTIWP = getAnalysisIfAvailable<TargetTransformInfoWrapperPass>();
- TTI = TTIWP ? &TTIWP->getTTI() : nullptr;
+ TTI = TTIWP ? &TTIWP->getTTI(
F
) : nullptr;
return false;
}