[llvm] 0c3921e - [SCEV] Delete unused code from header
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 24 16:34:58 PDT 2019
Author: Philip Reames
Date: 2019-10-24T16:34:49-07:00
New Revision: 0c3921e7b9a821b4faa6b75f6b8a10f96b5678a8
URL: https://github.com/llvm/llvm-project/commit/0c3921e7b9a821b4faa6b75f6b8a10f96b5678a8
DIFF: https://github.com/llvm/llvm-project/commit/0c3921e7b9a821b4faa6b75f6b8a10f96b5678a8.diff
LOG: [SCEV] Delete unused code from header
Added:
Modified:
llvm/include/llvm/Analysis/ScalarEvolution.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h
index 9c55f7a5090f..8641c307d341 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolution.h
+++ b/llvm/include/llvm/Analysis/ScalarEvolution.h
@@ -435,35 +435,6 @@ class SCEVUnionPredicate final : public SCEVPredicate {
}
};
-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<ExitLimitQuery> {
- 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.
More information about the llvm-commits
mailing list