[llvm-commits] [llvm] r62165 - /llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Duncan Sands
baldrick at free.fr
Tue Jan 13 05:48:45 PST 2009
Author: baldrick
Date: Tue Jan 13 07:48:44 2009
New Revision: 62165
URL: http://llvm.org/viewvc/llvm-project?rev=62165&view=rev
Log:
Correct a comment.
Modified:
llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
Modified: llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp?rev=62165&r1=62164&r2=62165&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalOpt.cpp Tue Jan 13 07:48:44 2009
@@ -1715,7 +1715,7 @@
} else if (GS.StoredType == GlobalStatus::isStoredOnce) {
// If the initial value for the global was an undef value, and if only
// one other value was stored into it, we can just change the
- // initializer to be an undef value, then delete all stores to the
+ // initializer to be the stored value, then delete all stores to the
// global. This allows us to mark it constant.
if (Constant *SOVConstant = dyn_cast<Constant>(GS.StoredOnceValue))
if (isa<UndefValue>(GV->getInitializer())) {
More information about the llvm-commits
mailing list