summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LCSSA.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-05 05:23:32 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-05 05:23:32 +0000
commita1d35926b7e2fdae5cfabb005f553865fdc2dd44 (patch)
tree4e28bb5448a8dd71df5fe8ee60b461dbaf62642f /llvm/lib/Transforms/Utils/LCSSA.cpp
parent0a28e90f2c4cfac473fbf2f4094e62215d3f31cc (diff)
downloadbcm5719-llvm-a1d35926b7e2fdae5cfabb005f553865fdc2dd44.tar.gz
bcm5719-llvm-a1d35926b7e2fdae5cfabb005f553865fdc2dd44.zip
For PR1177:
Revert last patch which caused iteration invalidation. llvm-svn: 33901
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LCSSA.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp
index 1d1783f5f49..554dcbcec22 100644
--- a/llvm/lib/Transforms/Utils/LCSSA.cpp
+++ b/llvm/lib/Transforms/Utils/LCSSA.cpp
@@ -33,13 +33,13 @@
#include "llvm/Pass.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
-#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/Dominators.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Support/CFG.h"
#include <algorithm>
+#include <map>
using namespace llvm;
STATISTIC(NumLCSSA, "Number of live out of a loop variables");
@@ -71,7 +71,7 @@ namespace {
SetVector<Instruction*> getLoopValuesUsedOutsideLoop(Loop *L);
Value *GetValueForBlock(DominatorTree::Node *BB, Instruction *OrigInst,
- DenseMap<DominatorTree::Node*, Value*> &Phis);
+ std::map<DominatorTree::Node*, Value*> &Phis);
/// inLoop - returns true if the given block is within the current loop
const bool inLoop(BasicBlock* B) {
@@ -139,7 +139,7 @@ void LCSSA::ProcessInstruction(Instruction *Instr,
++NumLCSSA; // We are applying the transformation
// Keep track of the blocks that have the value available already.
- DenseMap<DominatorTree::Node*, Value*> Phis;
+ std::map<DominatorTree::Node*, Value*> Phis;
DominatorTree::Node *InstrNode = DT->getNode(Instr->getParent());
@@ -226,7 +226,7 @@ SetVector<Instruction*> LCSSA::getLoopValuesUsedOutsideLoop(Loop *L) {
/// GetValueForBlock - Get the value to use within the specified basic block.
/// available values are in Phis.
Value *LCSSA::GetValueForBlock(DominatorTree::Node *BB, Instruction *OrigInst,
- DenseMap<DominatorTree::Node*, Value*> &Phis) {
+ std::map<DominatorTree::Node*, Value*> &Phis) {
// If there is no dominator info for this BB, it is unreachable.
if (BB == 0)
return UndefValue::get(OrigInst->getType());
OpenPOWER on IntegriCloud