summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-26 05:16:34 +0000
committerChris Lattner <sabre@nondot.org>2005-09-26 05:16:34 +0000
commitb009663e2793c7a618678666bb07f3b6583c93d6 (patch)
tree9c75834685f6ab134ea7d9da4ac00a5310180895 /llvm/lib/Transforms
parent4b05c322d58b0da7ff17f9dd2dc209f31b753259 (diff)
downloadbcm5719-llvm-b009663e2793c7a618678666bb07f3b6583c93d6.tar.gz
bcm5719-llvm-b009663e2793c7a618678666bb07f3b6583c93d6.zip
add a comment
llvm-svn: 23442
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/GlobalOpt.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalOpt.cpp b/llvm/lib/Transforms/IPO/GlobalOpt.cpp
index 4f0661c325b..09e4928a1f9 100644
--- a/llvm/lib/Transforms/IPO/GlobalOpt.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud