[llvm-commits] [llvm] r139571 - /llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
Eli Friedman
eli.friedman at gmail.com
Mon Sep 12 18:28:59 PDT 2011
Author: efriedma
Date: Mon Sep 12 20:28:59 2011
New Revision: 139571
URL: http://llvm.org/viewvc/llvm-project?rev=139571&view=rev
Log:
Add comment to clarify the behavior of a helper in DSE.
Modified:
llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp?rev=139571&r1=139570&r2=139571&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/DeadStoreElimination.cpp Mon Sep 12 20:28:59 2011
@@ -159,6 +159,8 @@
}
/// 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))
More information about the llvm-commits
mailing list