mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
Use std::includes instead of my own implementation.
Jakob's review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
decb37eb2b
commit
c72e08b4a9
@ -1135,15 +1135,8 @@ findRegUnitSet(const std::vector<RegUnitSet> &UniqueSets,
|
||||
// Return true if the RUSubSet is a subset of RUSuperSet.
|
||||
static bool isRegUnitSubSet(const std::vector<unsigned> &RUSubSet,
|
||||
const std::vector<unsigned> &RUSuperSet) {
|
||||
for (RegUnitSet::iterator SubIdx = RUSubSet.begin(), EndIdx = RUSubSet.end(),
|
||||
SearchIdx = RUSuperSet.begin(), SearchEnd = RUSuperSet.end();
|
||||
SubIdx != EndIdx; ++SubIdx) {
|
||||
SearchIdx = find(SearchIdx, SearchEnd, *SubIdx);
|
||||
if (SearchIdx == SearchEnd)
|
||||
return false;
|
||||
++SearchIdx;
|
||||
}
|
||||
return true;
|
||||
return std::includes(RUSuperSet.begin(), RUSuperSet.end(),
|
||||
RUSubSet.begin(), RUSubSet.end());
|
||||
}
|
||||
|
||||
// Iteratively prune unit sets.
|
||||
|
Loading…
x
Reference in New Issue
Block a user