[multiversion] Thread a function argument through all the callers of the
authorChandler Carruth <chandlerc@gmail.com>
Sun, 1 Feb 2015 12:01:35 +0000 (12:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 1 Feb 2015 12:01:35 +0000 (12:01 +0000)
commitfdb9c573f754364bddee53e75049e9ddd6cc457a
tree9fec4c626857f9b2189bb31068d52ad9b2c5b879
parentbd57186c763f9c47a6da570f56aceabd830e32a0
[multiversion] Thread a function argument through all the callers of the
getTTI method used to get an actual TTI object.

No functionality changed. This just threads the argument and ensures
code like the inliner can correctly look up the callee's TTI rather than
using a fixed one.

The next change will use this to implement per-function subtarget usage
by TTI. The changes after that should eliminate the need for FTTI as that
will have become the default.

llvm-svn: 227730
21 files changed:
llvm/include/llvm/Analysis/InlineCost.h
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/lib/Analysis/CostModel.cpp
llvm/lib/Analysis/FunctionTargetTransformInfo.cpp
llvm/lib/Analysis/IPA/InlineCost.cpp
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/lib/Transforms/Scalar/LoopRotation.cpp
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
llvm/lib/Transforms/Vectorize/BBVectorize.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp