summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoadValueNumbering.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-11 20:58:19 +0000
committerDan Gohman <gohman@apple.com>2008-07-11 20:58:19 +0000
commit3707f1daba7462cb8105d191b4d091585abfbfbd (patch)
tree9c15fc307f80a4e5cc304b912d90e79ccc7b102c /llvm/lib/Analysis/LoadValueNumbering.cpp
parentaced3ad4b8cdc5f36028ffc5273f60ce736268c3 (diff)
downloadbcm5719-llvm-3707f1daba7462cb8105d191b4d091585abfbfbd.tar.gz
bcm5719-llvm-3707f1daba7462cb8105d191b4d091585abfbfbd.zip
Use find instead of lower_bound.
llvm-svn: 53474
Diffstat (limited to 'llvm/lib/Analysis/LoadValueNumbering.cpp')
-rw-r--r--llvm/lib/Analysis/LoadValueNumbering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoadValueNumbering.cpp b/llvm/lib/Analysis/LoadValueNumbering.cpp
index 2414d33863d..f99ebb4a83d 100644
--- a/llvm/lib/Analysis/LoadValueNumbering.cpp
+++ b/llvm/lib/Analysis/LoadValueNumbering.cpp
@@ -117,9 +117,9 @@ static bool isPathTransparentTo(BasicBlock *CurBlock, BasicBlock *Dom,
// Check whether this block is known transparent or not.
std::map<BasicBlock*, bool>::iterator TBI =
- TransparentBlocks.lower_bound(CurBlock);
+ TransparentBlocks.find(CurBlock);
- if (TBI == TransparentBlocks.end() || TBI->first != CurBlock) {
+ if (TBI == TransparentBlocks.end()) {
// If this basic block can modify the memory location, then the path is not
// transparent!
if (AA.canBasicBlockModify(*CurBlock, Ptr, Size)) {
OpenPOWER on IntegriCloud