From: Chris Lattner Date: Mon, 26 Sep 2005 05:16:34 +0000 (+0000) Subject: add a comment X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=562a055ca731c2f673cc4cfb60de963fce5e38a6;p=oota-llvm.git add a comment git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23442 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index 4f0661c325b..09e4928a1f9 100644 --- a/lib/Transforms/IPO/GlobalOpt.cpp +++ b/lib/Transforms/IPO/GlobalOpt.cpp @@ -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 &Memory) { // If this memory location has been recently stored, use the stored value: it