From fdb9c573f754364bddee53e75049e9ddd6cc457a Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 1 Feb 2015 12:01:35 +0000 Subject: [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 --- llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp') diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp index bc2ae2423e1..fb8fe38c8d7 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp +++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp @@ -206,7 +206,7 @@ struct CFGSimplifyPass : public FunctionPass { AssumptionCache *AC = &getAnalysis().getAssumptionCache(F); const TargetTransformInfo &TTI = - getAnalysis().getTTI(); + getAnalysis().getTTI(F); DataLayoutPass *DLP = getAnalysisIfAvailable(); const DataLayout *DL = DLP ? &DLP->getDataLayout() : nullptr; return simplifyFunctionCFG(F, TTI, DL, AC, BonusInstThreshold); -- cgit v1.2.3