Skip to content

Commit

Permalink
[SCEV] Delete unused code from header
Browse files Browse the repository at this point in the history
  • Loading branch information
preames committed Oct 24, 2019
1 parent 9ab6d82 commit 0c3921e
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions llvm/include/llvm/Analysis/ScalarEvolution.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0c3921e

Please sign in to comment.