diff --git a/lib/Analysis/LoadValueNumbering.cpp b/lib/Analysis/LoadValueNumbering.cpp index 354eb8d5602..5e91be2a840 100644 --- a/lib/Analysis/LoadValueNumbering.cpp +++ b/lib/Analysis/LoadValueNumbering.cpp @@ -374,17 +374,7 @@ void LoadVN::getEqualNumberNodes(Value *V, // Get dominators. DominatorSet &DomSetInfo = getAnalysis(); - // Find all of the candidate loads and stores that are in the same block as - // the defining instruction. std::set Instrs; - Instrs.insert(CandidateLoads[LoadBB].begin(), CandidateLoads[LoadBB].end()); - CandidateLoads.erase(LoadBB); - Instrs.insert(CandidateStores[LoadBB].begin(), CandidateStores[LoadBB].end()); - CandidateStores.erase(LoadBB); - - // If there is anything left in the Instrs set, it could not possibly equal - // LI. - Instrs.clear(); // TransparentBlocks - For each basic block the load/store is alive across, // figure out if the pointer is invalidated or not. If it is invalidated, the