summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-09-13 01:28:59 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-09-13 01:28:59 +0000
commit1582e7f1e255c19595f82cb447e52869196dec58 (patch)
tree1c7a26f5013b5213b7fe8104cc0ee171f8e78109 /lib/Transforms
parent5ac7c7da3ebfd1aa95226aeefb8cfa3ba34fd72a (diff)
downloadllvm-1582e7f1e255c19595f82cb447e52869196dec58.tar.gz
llvm-1582e7f1e255c19595f82cb447e52869196dec58.tar.bz2
llvm-1582e7f1e255c19595f82cb447e52869196dec58.tar.xz
Add comment to clarify the behavior of a helper in DSE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/DeadStoreElimination.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 2267320ce9..ffa77098bc 100644
--- a/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -159,6 +159,8 @@ static bool hasMemoryWrite(Instruction *I) {
}
/// getLocForWrite - Return a Location stored to by the specified instruction.
+/// If isRemovable returns true, this function and getLocForRead completely
+/// describe the memory operations for this instruction.
static AliasAnalysis::Location
getLocForWrite(Instruction *Inst, AliasAnalysis &AA) {
if (StoreInst *SI = dyn_cast<StoreInst>(Inst))