[llvm-commits] [llvm] r108616 - /llvm/trunk/include/llvm/Analysis/LoopInfo.h
Lang Hames
lhames at gmail.com
Sat Jul 17 02:21:53 PDT 2010
Author: lhames
Date: Sat Jul 17 04:21:53 2010
New Revision: 108616
URL: http://llvm.org/viewvc/llvm-project?rev=108616&view=rev
Log:
Switched to array_pod_sort as per Chris's suggestion.
Modified:
llvm/trunk/include/llvm/Analysis/LoopInfo.h
Modified: llvm/trunk/include/llvm/Analysis/LoopInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LoopInfo.h?rev=108616&r1=108615&r2=108616&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/LoopInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/LoopInfo.h Sat Jul 17 04:21:53 2010
@@ -35,6 +35,7 @@
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/STLExtras.h"
#include "llvm/Analysis/Dominators.h"
#include "llvm/Support/CFG.h"
#include "llvm/Support/raw_ostream.h"
@@ -238,7 +239,7 @@
// Sort the blocks vector so that we can use binary search to do quick
// lookups.
SmallVector<BlockT*, 128> LoopBBs(block_begin(), block_end());
- std::sort(LoopBBs.begin(), LoopBBs.end());
+ array_pod_sort(LoopBBs.begin(), LoopBBs.end());
typedef GraphTraits<BlockT*> BlockTraits;
for (block_iterator BI = block_begin(), BE = block_end(); BI != BE; ++BI)
More information about the llvm-commits
mailing list