From 3ca4a6bcf11d6b4ac34fed640f3ab23995ec1877 Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Thu, 15 Dec 2016 03:02:15 +0000 Subject: Remove the AssumptionCache After r289755, the AssumptionCache is no longer needed. Variables affected by assumptions are now found by using the new operand-bundle-based scheme. This new scheme is more computationally efficient, and also we need much less code... llvm-svn: 289756 --- llvm/lib/Analysis/CodeMetrics.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'llvm/lib/Analysis/CodeMetrics.cpp') diff --git a/llvm/lib/Analysis/CodeMetrics.cpp b/llvm/lib/Analysis/CodeMetrics.cpp index 859adf0eb94..1f7c6aa3568 100644 --- a/llvm/lib/Analysis/CodeMetrics.cpp +++ b/llvm/lib/Analysis/CodeMetrics.cpp @@ -11,7 +11,6 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Analysis/AssumptionCache.h" #include "llvm/Analysis/CodeMetrics.h" #include "llvm/Analysis/LoopInfo.h" #include "llvm/Analysis/TargetTransformInfo.h" @@ -71,8 +70,7 @@ static void completeEphemeralValues(SmallPtrSetImpl &Visited, // Find all ephemeral values. void CodeMetrics::collectEphemeralValues( - const Loop *L, AssumptionCache *AC, - SmallPtrSetImpl &EphValues) { + const Loop *L, SmallPtrSetImpl &EphValues) { SmallPtrSet Visited; SmallVector Worklist; @@ -87,8 +85,7 @@ void CodeMetrics::collectEphemeralValues( } void CodeMetrics::collectEphemeralValues( - const Function *F, AssumptionCache *AC, - SmallPtrSetImpl &EphValues) { + const Function *F, SmallPtrSetImpl &EphValues) { SmallPtrSet Visited; SmallVector Worklist; -- cgit v1.2.3