[llvm] r182257 - Enable pod-like optimizations for pred and succ iterators.

Benjamin Kramer benny.kra at googlemail.com
Mon May 20 06:12:58 PDT 2013


Author: d0k
Date: Mon May 20 08:12:58 2013
New Revision: 182257

URL: http://llvm.org/viewvc/llvm-project?rev=182257&view=rev
Log:
Enable pod-like optimizations for pred and succ iterators.

Modified:
    llvm/trunk/include/llvm/IR/Use.h
    llvm/trunk/include/llvm/Support/CFG.h

Modified: llvm/trunk/include/llvm/IR/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Use.h?rev=182257&r1=182256&r2=182257&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Use.h (original)
+++ llvm/trunk/include/llvm/IR/Use.h Mon May 20 08:12:58 2013
@@ -177,7 +177,6 @@ public:
   typedef typename super::reference reference;
   typedef typename super::pointer pointer;
 
-  value_use_iterator(const _Self &I) : U(I.U) {}
   value_use_iterator() {}
 
   bool operator==(const _Self &x) const {

Modified: llvm/trunk/include/llvm/Support/CFG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CFG.h?rev=182257&r1=182256&r2=182257&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CFG.h (original)
+++ llvm/trunk/include/llvm/Support/CFG.h Mon May 20 08:12:58 2013
@@ -240,6 +240,10 @@ inline succ_const_iterator succ_end(cons
   return succ_const_iterator(BB->getTerminator(), true);
 }
 
+template <typename T, typename U> struct isPodLike<SuccIterator<T, U> > {
+  static const bool value = isPodLike<T>::value;
+};
+
 
 
 //===--------------------------------------------------------------------===//





More information about the llvm-commits mailing list