[llvm-commits] CVS: llvm/lib/Transforms/IPO/GlobalOpt.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Sep 25 22:16:46 PDT 2005
Changes in directory llvm/lib/Transforms/IPO:
GlobalOpt.cpp updated: 1.47 -> 1.48
---
Log message:
add a comment
---
Diffs of the changes: (+3 -0)
GlobalOpt.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/Transforms/IPO/GlobalOpt.cpp
diff -u llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.47 llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.48
--- llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.47 Mon Sep 26 00:15:37 2005
+++ llvm/lib/Transforms/IPO/GlobalOpt.cpp Mon Sep 26 00:16:34 2005
@@ -1263,6 +1263,9 @@
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
More information about the llvm-commits
mailing list