summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita19435702536f01a0b02ee03d9f968a155caaf53 (patch)
tree9cba8703026ef694e7e5d9bf26ca758e243117e2 /llvm/lib/Analysis/LoadValueNumbering.cpp
parentbe62e72273cd4c1e0660605c3ea20f0f4052df23 (diff)
downloadbcm5719-llvm-a19435702536f01a0b02ee03d9f968a155caaf53.tar.gz
bcm5719-llvm-a19435702536f01a0b02ee03d9f968a155caaf53.zip
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. llvm-svn: 19911
Diffstat (limited to 'llvm/lib/Analysis/LoadValueNumbering.cpp')
-rw-r--r--llvm/lib/Analysis/LoadValueNumbering.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Analysis/LoadValueNumbering.cpp b/llvm/lib/Analysis/LoadValueNumbering.cpp
index 354eb8d5602..5e91be2a840 100644
--- a/llvm/lib/Analysis/LoadValueNumbering.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud