add a comment
authorChris Lattner <sabre@nondot.org>
Mon, 26 Sep 2005 05:16:34 +0000 (05:16 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Sep 2005 05:16:34 +0000 (05:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23442 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/GlobalOpt.cpp

index 4f0661c325b9766da735ac24e77f3582da4c4e74..09e4928a1f94a185f1eda9e01ee849a39622ec3a 100644 (file)
@@ -1263,6 +1263,9 @@ static void CommitValueTo(Constant *Val, Constant *Addr) {
   GV->setInitializer(Val);
 }
 
+/// ComputeLoadResult - Return the value that would be computed by a load from
+/// P after the stores reflected by 'memory' have been performed.  If we can't
+/// decide, return null.
 static Constant *ComputeLoadResult(Constant *P,
                                 const std::map<Constant*, Constant*> &Memory) {
   // If this memory location has been recently stored, use the stored value: it