aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/LoadValueNumbering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-29 06:39:25 +0000
committerChris Lattner <sabre@nondot.org>2005-01-29 06:39:25 +0000
commit4f16bd7a745f99e118eb05b007d5675ada49a377 (patch)
treee832213c4ece1f5765e07c0d0769d699106748a1 /lib/Analysis/LoadValueNumbering.cpp
parent15774df4d3b3c4c5b944f7ebeff3febaabdfa7aa (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoadValueNumbering.cpp')
-rw-r--r--lib/Analysis/LoadValueNumbering.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Analysis/LoadValueNumbering.cpp b/lib/Analysis/LoadValueNumbering.cpp
index 354eb8d560..5e91be2a84 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<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