Sink a typedef and comparator down to the function that actually uses them.

llvm-svn: 186779
This commit is contained in:
Chandler Carruth 2013-07-20 23:36:19 +00:00
parent c2bb73fc8d
commit 4711793e8a
1 changed files with 10 additions and 8 deletions

View File

@ -324,14 +324,6 @@ struct AllocaInfo {
}
};
typedef std::pair<DomTreeNode *, unsigned> DomTreeNodePair;
struct DomTreeNodeCompare {
bool operator()(const DomTreeNodePair &LHS, const DomTreeNodePair &RHS) {
return LHS.second < RHS.second;
}
};
} // end of anonymous namespace
static void removeLifetimeIntrinsicUsers(AllocaInst *AI) {
@ -724,6 +716,16 @@ void PromoteMem2Reg::ComputeLiveInBlocks(
}
}
namespace {
typedef std::pair<DomTreeNode *, unsigned> DomTreeNodePair;
struct DomTreeNodeCompare {
bool operator()(const DomTreeNodePair &LHS, const DomTreeNodePair &RHS) {
return LHS.second < RHS.second;
}
};
} // end anonymous namespace
/// At this point, we're committed to promoting the alloca using IDF's, and the
/// standard SSA construction algorithm. Determine which blocks need phi nodes
/// and see if we can optimize out some work by avoiding insertion of dead phi