From b141a6699285a015e37e6f9eacf4bb0c2d57dd89 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Thu, 24 Oct 2019 16:34:39 -0700 Subject: [PATCH] [SCEV] Delete unused code from header --- include/llvm/Analysis/ScalarEvolution.h | 29 ------------------------- 1 file changed, 29 deletions(-) diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index 9c55f7a5090..8641c307d34 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -435,35 +435,6 @@ public: } }; -struct ExitLimitQuery { - ExitLimitQuery(const Loop *L, BasicBlock *ExitingBlock, bool AllowPredicates) - : L(L), ExitingBlock(ExitingBlock), AllowPredicates(AllowPredicates) {} - - const Loop *L; - BasicBlock *ExitingBlock; - bool AllowPredicates; -}; - -template <> struct DenseMapInfo { - static inline ExitLimitQuery getEmptyKey() { - return ExitLimitQuery(nullptr, nullptr, true); - } - - static inline ExitLimitQuery getTombstoneKey() { - return ExitLimitQuery(nullptr, nullptr, false); - } - - static unsigned getHashValue(ExitLimitQuery Val) { - return hash_combine(hash_combine(Val.L, Val.ExitingBlock), - Val.AllowPredicates); - } - - static bool isEqual(ExitLimitQuery LHS, ExitLimitQuery RHS) { - return LHS.L == RHS.L && LHS.ExitingBlock == RHS.ExitingBlock && - LHS.AllowPredicates == RHS.AllowPredicates; - } -}; - /// The main scalar evolution driver. Because client code (intentionally) /// can't do much with the SCEV objects directly, they must ask this class /// for services.