[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)
commitbaceda736e85ecd0e85127710ed2f91f139e07d5
tree9fd4ca984cc9a1e01380c273a4eeb5fd6adff19d
parent59d99862593b6cfca1c1cb59366a8718e81080c3
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227730 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
include/llvm/Analysis/InlineCost.h
include/llvm/Analysis/TargetTransformInfo.h
lib/Analysis/CostModel.cpp
lib/Analysis/FunctionTargetTransformInfo.cpp
lib/Analysis/IPA/InlineCost.cpp
lib/CodeGen/CodeGenPrepare.cpp
lib/Transforms/Scalar/ConstantHoisting.cpp
lib/Transforms/Scalar/EarlyCSE.cpp
lib/Transforms/Scalar/IndVarSimplify.cpp
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
lib/Transforms/Scalar/LoopRotation.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp
lib/Transforms/Scalar/LoopUnrollPass.cpp
lib/Transforms/Scalar/LoopUnswitch.cpp
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
lib/Transforms/Scalar/SimplifyCFGPass.cpp
lib/Transforms/Scalar/TailRecursionElimination.cpp
lib/Transforms/Vectorize/BBVectorize.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp
lib/Transforms/Vectorize/SLPVectorizer.cpp