From 562a055ca731c2f673cc4cfb60de963fce5e38a6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Sep 2005 05:16:34 +0000 Subject: [PATCH] add a comment git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23442 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/GlobalOpt.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.34.1