mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Remove a DenseMapInfo specialization for std::pair -- we have one of
those baked into DenseMap now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
02aea0116a
commit
fa873afbdf
@ -56,26 +56,6 @@ STATISTIC(NumSingleStore, "Number of alloca's promoted with a single store");
|
|||||||
STATISTIC(NumDeadAlloca, "Number of dead alloca's removed");
|
STATISTIC(NumDeadAlloca, "Number of dead alloca's removed");
|
||||||
STATISTIC(NumPHIInsert, "Number of PHI nodes inserted");
|
STATISTIC(NumPHIInsert, "Number of PHI nodes inserted");
|
||||||
|
|
||||||
namespace llvm {
|
|
||||||
template<>
|
|
||||||
struct DenseMapInfo<std::pair<BasicBlock*, unsigned> > {
|
|
||||||
typedef std::pair<BasicBlock*, unsigned> EltTy;
|
|
||||||
static inline EltTy getEmptyKey() {
|
|
||||||
return EltTy(reinterpret_cast<BasicBlock*>(-1), ~0U);
|
|
||||||
}
|
|
||||||
static inline EltTy getTombstoneKey() {
|
|
||||||
return EltTy(reinterpret_cast<BasicBlock*>(-2), 0U);
|
|
||||||
}
|
|
||||||
static unsigned getHashValue(const std::pair<BasicBlock*, unsigned> &Val) {
|
|
||||||
using llvm::hash_value;
|
|
||||||
return static_cast<unsigned>(hash_value(Val));
|
|
||||||
}
|
|
||||||
static bool isEqual(const EltTy &LHS, const EltTy &RHS) {
|
|
||||||
return LHS == RHS;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
bool llvm::isAllocaPromotable(const AllocaInst *AI) {
|
bool llvm::isAllocaPromotable(const AllocaInst *AI) {
|
||||||
// FIXME: If the memory unit is of pointer or integer type, we can permit
|
// FIXME: If the memory unit is of pointer or integer type, we can permit
|
||||||
// assignments to subsections of the memory unit.
|
// assignments to subsections of the memory unit.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user