mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Enable pod-like optimizations for pred and succ iterators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182257 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7536ecf291
commit
e932e891e5
@ -177,7 +177,6 @@ public:
|
|||||||
typedef typename super::reference reference;
|
typedef typename super::reference reference;
|
||||||
typedef typename super::pointer pointer;
|
typedef typename super::pointer pointer;
|
||||||
|
|
||||||
value_use_iterator(const _Self &I) : U(I.U) {}
|
|
||||||
value_use_iterator() {}
|
value_use_iterator() {}
|
||||||
|
|
||||||
bool operator==(const _Self &x) const {
|
bool operator==(const _Self &x) const {
|
||||||
|
@ -240,6 +240,10 @@ inline succ_const_iterator succ_end(const BasicBlock *BB) {
|
|||||||
return succ_const_iterator(BB->getTerminator(), true);
|
return succ_const_iterator(BB->getTerminator(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T, typename U> struct isPodLike<SuccIterator<T, U> > {
|
||||||
|
static const bool value = isPodLike<T>::value;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user