[llvm-commits] [llvm] r107869 - in /llvm/trunk/include/llvm: ADT/PostOrderIterator.h Analysis/IntervalIterator.h
Duncan Sands
baldrick at free.fr
Thu Jul 8 06:06:08 PDT 2010
Author: baldrick
Date: Thu Jul 8 08:06:08 2010
New Revision: 107869
URL: http://llvm.org/viewvc/llvm-project?rev=107869&view=rev
Log:
Use std::vector rather than SmallVector here because SmallVector
causes some versions of gcc to crash when building LLVM.
Modified:
llvm/trunk/include/llvm/ADT/PostOrderIterator.h
llvm/trunk/include/llvm/Analysis/IntervalIterator.h
Modified: llvm/trunk/include/llvm/ADT/PostOrderIterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/PostOrderIterator.h?rev=107869&r1=107868&r2=107869&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/PostOrderIterator.h (original)
+++ llvm/trunk/include/llvm/ADT/PostOrderIterator.h Thu Jul 8 08:06:08 2010
@@ -18,7 +18,6 @@
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/SmallPtrSet.h"
-#include "llvm/ADT/SmallVector.h"
#include <set>
#include <vector>
@@ -52,7 +51,7 @@
// VisitStack - Used to maintain the ordering. Top = current block
// First element is basic block pointer, second is the 'next child' to visit
- SmallVector<std::pair<NodeType *, ChildItTy>, 16> VisitStack;
+ std::vector<std::pair<NodeType *, ChildItTy> > VisitStack;
void traverseChild() {
while (VisitStack.back().second != GT::child_end(VisitStack.back().first)) {
Modified: llvm/trunk/include/llvm/Analysis/IntervalIterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/IntervalIterator.h?rev=107869&r1=107868&r2=107869&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/IntervalIterator.h (original)
+++ llvm/trunk/include/llvm/Analysis/IntervalIterator.h Thu Jul 8 08:06:08 2010
@@ -33,12 +33,12 @@
#ifndef LLVM_INTERVAL_ITERATOR_H
#define LLVM_INTERVAL_ITERATOR_H
-#include "llvm/ADT/SmallVector.h"
#include "llvm/Analysis/IntervalPartition.h"
#include "llvm/Function.h"
#include "llvm/Support/CFG.h"
-#include <set>
#include <algorithm>
+#include <set>
+#include <vector>
namespace llvm {
@@ -88,7 +88,7 @@
template<class NodeTy, class OrigContainer_t, class GT = GraphTraits<NodeTy*>,
class IGT = GraphTraits<Inverse<NodeTy*> > >
class IntervalIterator {
- SmallVector<std::pair<Interval*, typename Interval::succ_iterator>, 16> IntStack;
+ std::vector<std::pair<Interval*, typename Interval::succ_iterator> > IntStack;
std::set<BasicBlock*> Visited;
OrigContainer_t *OrigContainer;
bool IOwnMem; // If True, delete intervals when done with them
More information about the llvm-commits
mailing list