summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/MemorySSA.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2018-08-22 18:02:46 +0000
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2018-08-22 18:02:46 +0000
commitd61e7071cd8456cebbe25745da6a90a9fa51d3ed (patch)
treed1087ec88840b120eef4d0e9fc639ac90789cc1f /llvm/lib/Analysis/MemorySSA.cpp
parentc106183518157acc6a061528913968c543c14e27 (diff)
downloadbcm5719-llvm-d61e7071cd8456cebbe25745da6a90a9fa51d3ed.tar.gz
bcm5719-llvm-d61e7071cd8456cebbe25745da6a90a9fa51d3ed.zip
[MemorySSA] Move two simple getters; NFC
We're calling these functions quite a bit from outside of MemorySSA.cpp now. Given that they're relatively simple one-liners, I think the style preference is to have them inline. llvm-svn: 340430
Diffstat (limited to 'llvm/lib/Analysis/MemorySSA.cpp')
-rw-r--r--llvm/lib/Analysis/MemorySSA.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/MemorySSA.cpp b/llvm/lib/Analysis/MemorySSA.cpp
index 734dee2bcf1..e9063f679b3 100644
--- a/llvm/lib/Analysis/MemorySSA.cpp
+++ b/llvm/lib/Analysis/MemorySSA.cpp
@@ -1824,14 +1824,6 @@ void MemorySSA::verifyDefUses(Function &F) const {
}
}
-MemoryUseOrDef *MemorySSA::getMemoryAccess(const Instruction *I) const {
- return cast_or_null<MemoryUseOrDef>(ValueToMemoryAccess.lookup(I));
-}
-
-MemoryPhi *MemorySSA::getMemoryAccess(const BasicBlock *BB) const {
- return cast_or_null<MemoryPhi>(ValueToMemoryAccess.lookup(cast<Value>(BB)));
-}
-
/// Perform a local numbering on blocks so that instruction ordering can be
/// determined in constant time.
/// TODO: We currently just number in order. If we numbered by N, we could
OpenPOWER on IntegriCloud