Add comment to clarify the behavior of a helper in DSE.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 13 Sep 2011 01:28:59 +0000 (01:28 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 13 Sep 2011 01:28:59 +0000 (01:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139571 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/DeadStoreElimination.cpp

index 2267320ce94e2908e5e38d2bd21a298b8f7f280b..ffa77098bc8eff552ee06e89ab54e9f47575dd5f 100644 (file)
@@ -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))