From 7a7cf6b98465fb307e1edaababd2c03c1944c9b0 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 14 Aug 2008 23:05:24 +0000 Subject: [PATCH] Temporarily revert r54792. It's causing an ICE during bootstrapping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54804 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/SCCP.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 91e4d14fec7..8c64d8ff7c9 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -138,7 +138,7 @@ public: /// class SCCPSolver : public InstVisitor { SmallSet BBExecutable;// The basic blocks that are executable - DenseMap ValueState; // The state each value is in. + std::map ValueState; // The state each value is in. /// GlobalValue - If we are tracking any values for the contents of a global /// variable, we keep a mapping from the constant accessor to the element of @@ -231,7 +231,7 @@ public: /// getValueMapping - Once we have solved for constants, return the mapping of /// LLVM values to LatticeVals. - DenseMap &getValueMapping() { + std::map &getValueMapping() { return ValueState; } @@ -311,7 +311,7 @@ private: // Instruction object, then use this accessor to get its value from the map. // inline LatticeVal &getValueState(Value *V) { - DenseMap::iterator I = ValueState.find(V); + std::map::iterator I = ValueState.find(V); if (I != ValueState.end()) return I->second; // Common case, in the map if (Constant *C = dyn_cast(V)) { @@ -1555,7 +1555,7 @@ bool SCCP::runOnFunction(Function &F) { // SmallSet &ExecutableBBs = Solver.getExecutableBlocks(); SmallVector Insts; - DenseMap &Values = Solver.getValueMapping(); + std::map &Values = Solver.getValueMapping(); for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) if (!ExecutableBBs.count(BB)) { @@ -1701,7 +1701,7 @@ bool IPSCCP::runOnModule(Module &M) { SmallSet &ExecutableBBs = Solver.getExecutableBlocks(); SmallVector Insts; SmallVector BlocksToErase; - DenseMap &Values = Solver.getValueMapping(); + std::map &Values = Solver.getValueMapping(); for (Module::iterator F = M.begin(), E = M.end(); F != E; ++F) { for (Function::arg_iterator AI = F->arg_begin(), E = F->arg_end(); -- 2.34.1