diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-26 05:16:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-26 05:16:34 +0000 |
commit | 562a055ca731c2f673cc4cfb60de963fce5e38a6 (patch) | |
tree | 0a776360d43200aa77a78cffe09b334c9ad30b43 | |
parent | 04de1cfb2b58cd3fff06d0328a733082ce775ab6 (diff) |
add a comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23442 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/IPO/GlobalOpt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index 4f0661c325..09e4928a1f 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<Constant*, Constant*> &Memory) { // If this memory location has been recently stored, use the stored value: it |