[llvm-commits] CVS: llvm/lib/Analysis/LoadValueNumbering.cpp 
    Chris Lattner 
    lattner at cs.uiuc.edu
       
    Fri Jan 28 22:39:40 PST 2005
    
    
  
Changes in directory llvm/lib/Analysis:
LoadValueNumbering.cpp updated: 1.27 -> 1.28
---
Log message:
Remove some useless map operations.  Loads/stores that are in the same
BB as the load are not included in the Cand* sets at all.
---
Diffs of the changes:  (+0 -10)
 LoadValueNumbering.cpp |   10 ----------
 1 files changed, 10 deletions(-)
Index: llvm/lib/Analysis/LoadValueNumbering.cpp
diff -u llvm/lib/Analysis/LoadValueNumbering.cpp:1.27 llvm/lib/Analysis/LoadValueNumbering.cpp:1.28
--- llvm/lib/Analysis/LoadValueNumbering.cpp:1.27	Sat Jan 29 00:31:53 2005
+++ llvm/lib/Analysis/LoadValueNumbering.cpp	Sat Jan 29 00:39:25 2005
@@ -374,17 +374,7 @@
   // Get dominators.
   DominatorSet &DomSetInfo = getAnalysis<DominatorSet>();
 
-  // Find all of the candidate loads and stores that are in the same block as
-  // the defining instruction.
   std::set<Instruction*> 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
    
    
More information about the llvm-commits
mailing list