mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-03 12:18:00 +00:00
switch a couple more calls to use array_pod_sort.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60337 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Analysis/ConstantFolding.h"
|
||||
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
|
||||
#include "llvm/Transforms/Utils/Local.h"
|
||||
@@ -380,7 +381,7 @@ bool JumpThreading::SimplifyPartiallyRedundantLoad(LoadInst *LI) {
|
||||
|
||||
// Now we know that each predecessor of this block has a value in
|
||||
// AvailablePreds, sort them for efficient access as we're walking the preds.
|
||||
std::sort(AvailablePreds.begin(), AvailablePreds.end());
|
||||
array_pod_sort(AvailablePreds.begin(), AvailablePreds.end());
|
||||
|
||||
// Create a PHI node at the start of the block for the PRE'd load value.
|
||||
PHINode *PN = PHINode::Create(LI->getType(), "", LoadBB->begin());
|
||||
|
Reference in New Issue
Block a user