forked from OSchip/llvm-project
Sink a typedef and comparator down to the function that actually uses them.
llvm-svn: 186779
This commit is contained in:
parent
c2bb73fc8d
commit
4711793e8a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue